/* ==========================================================================
   Meetfire Studio — single-page static site
   Type: SF Pro stack (Apple platforms) + SF Mono for labels
   Palette: warm paper, near-black ink, ember accent
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #14130f;
  --ink-soft: #34322c;
  --muted: #6b675e;
  --line: #e6e1d7;
  --ember: #d9502a;
  --ember-deep: #b23f1e;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1080px;
  --gutter: clamp(20px, 5vw, 40px);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ember);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 20px;
  height: 20px;
  color: var(--ember);
  flex: none;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.head-mail {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.head-mail:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) 0 clamp(56px, 7vw, 92px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(217, 80, 42, 0.13), rgba(217, 80, 42, 0) 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.hero h1 {
  font-size: clamp(2.5rem, 6.1vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 15ch;
}

.lede {
  margin-top: clamp(22px, 3vw, 30px);
  max-width: 53ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.62;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn--solid:hover {
  background: var(--ember-deep);
  border-color: var(--ember-deep);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0;
  scroll-margin-top: 80px;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section__note {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Apps
   -------------------------------------------------------------------------- */

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 4vw, 40px);
}

.app {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.app:hover {
  transform: translateY(-2px);
  border-color: #d8d2c6;
  box-shadow: 0 18px 40px -28px rgba(20, 19, 15, 0.4);
}

.app--next {
  background: #f6f1e8;
  border-color: #e5ded0;
}

.app__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.app__icon,
.app__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: none;
}

.app__icon {
  border: 1px solid rgba(20, 19, 15, 0.08);
}

.app__mark {
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed #cfc7b8;
  background: rgba(255, 255, 255, 0.5);
}

.app__mark svg {
  width: 26px;
  height: 26px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.app h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.app p {
  font-size: 14.75px;
  line-height: 1.66;
  color: var(--muted);
  margin-bottom: 22px;
}

.link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--ember-deep);
  border-bottom: 1px solid rgba(178, 63, 30, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Studio
   -------------------------------------------------------------------------- */

.studio {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.studio .section__head {
  display: block;
}

.studio .index {
  display: block;
  margin-bottom: 14px;
}

.studio__text {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.66;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 58ch;
}

.facts {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 104px;
}

.fact dd {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.fact a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.18s var(--ease);
}

.fact a:hover {
  border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.section--contact {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.contact__lede {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}

.contact__mail {
  display: inline-block;
  margin-top: clamp(20px, 3vw, 30px);
  font-size: clamp(1.55rem, 4.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  border-bottom: 2px solid rgba(217, 80, 42, 0.45);
  padding-bottom: 6px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.contact__mail:hover {
  color: var(--ember-deep);
  border-color: var(--ember-deep);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  border-top: 1px solid var(--line);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Entrance motion
   ========================================================================== */

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .actions {
  animation: rise 0.65s var(--ease) both;
}

.hero h1 {
  animation-delay: 0.06s;
}
.hero .lede {
  animation-delay: 0.12s;
}
.hero .actions {
  animation-delay: 0.18s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .studio {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .studio .section__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }
  .studio .index {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .site-head__inner {
    gap: 18px;
    min-height: 60px;
  }

  .head-mail {
    display: none;
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 13.5px;
    padding: 10px 0;
  }

  .hero h1 {
    max-width: 100%;
  }

  .apps {
    grid-template-columns: 1fr;
  }

  .section__note {
    margin-left: 0;
    flex-basis: 100%;
  }

  .app {
    padding: 22px;
  }

  .btn {
    min-height: 48px;
  }
}

@media (max-width: 400px) {
  .btn {
    padding: 0 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
