@import url('tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;            /* no sideways scroll on small screens */
  overflow-wrap: break-word;     /* long words/emails wrap instead of overflowing */
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cherry); margin: 0 0 18px; }
.mono { font-family: var(--font-mono); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; text-decoration: none; padding: 12px 20px; border-radius: 999px; transition: background .16s, color .16s, transform .16s; }
.btn-primary { background: var(--cherry); color: var(--paper); }
.btn-primary:hover { background: var(--cherry-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cherry); color: var(--cherry); }

/* header */
header.site { position: sticky; top: 0; z-index: 40; background: rgba(251,250,246,0.9); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand [data-mark] { width: 30px; height: 30px; color: var(--cherry); }
.brand b { font-weight: 600; font-size: 17px; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: rgba(38,29,26,0.7); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--cherry); }
.nav-links .btn { padding: 9px 17px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 130px 0 120px; }
.hero .ghost { position: absolute; right: -120px; top: -60px; width: 620px; color: var(--cherry); opacity: 0.05; pointer-events: none; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 600; margin: 16px 0 0; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--cherry); }
.hero p.sub { font-size: 19px; line-height: 1.6; color: rgba(38,29,26,0.74); max-width: 54ch; margin: 26px 0 0; text-wrap: pretty; }
.hero .cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* generic section */
section.block { padding: var(--section-y) 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 60ch; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 14px; }
.section-head p { font-size: 17px; color: rgba(38,29,26,0.7); margin: 0; line-height: 1.6; text-wrap: pretty; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px; transition: transform .16s, box-shadow .16s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.svc .n { font-family: var(--font-mono); font-size: 12px; color: var(--cherry); letter-spacing: 0.1em; }
.svc h3 { font-size: 22px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.01em; }
.svc p { font-size: 15px; line-height: 1.6; color: rgba(38,29,26,0.72); margin: 0; }

/* approach */
.approach { background: var(--ink); color: var(--paper); border-top: none; }
.approach .section-head h2 { color: var(--paper); }
.approach .section-head p { color: rgba(251,250,246,0.66); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { border-top: 1px solid rgba(251,250,246,0.2); padding-top: 22px; }
.step .k { font-family: var(--font-mono); font-size: 12px; color: var(--cherry); letter-spacing: 0.08em; }
.step h4 { font-size: 19px; font-weight: 600; margin: 14px 0 9px; }
.step p { font-size: 14.5px; line-height: 1.6; color: rgba(251,250,246,0.66); margin: 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.about-grid p { font-size: 18px; line-height: 1.7; color: rgba(38,29,26,0.8); margin: 0 0 18px; max-width: 52ch; text-wrap: pretty; }
.about-card { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 36px; }
.about-card [data-mark] { width: 48px; height: 48px; color: var(--cherry); margin-bottom: 22px; }
.about-card .nm { font-size: 20px; font-weight: 600; }
.about-card .ro { font-size: 14px; color: var(--muted); margin-top: 3px; }
.about-card dl { font-family: var(--font-mono); font-size: 13px; margin: 22px 0 0; display: grid; gap: 8px; }
.about-card dl a { color: var(--cherry); text-decoration: none; }

/* contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 0; }
.contact h2 a { color: var(--cherry); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .15s; }
.contact h2 a:hover { border-color: var(--cherry); }
/* email sized to fit the viewport and break cleanly if it ever can't */
.contact h2 .email { display: inline-block; max-width: 100%; margin-top: 8px; font-size: clamp(20px, 4.6vw, 40px); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact .meta { margin-top: 26px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.contact .meta a { color: var(--ink); text-decoration: none; }

/* footer */
footer.site { border-top: 1px solid var(--line-soft); padding: 48px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand [data-mark] { width: 24px; height: 24px; }
.foot .brand b { font-size: 14px; }
.foot .cr { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }

@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
  .services, .steps, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 30px; }
  :root { --section-y: 84px; --gutter: 24px; }
  .hero { padding: 96px 0 84px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .svc { padding: 26px; }
  .contact .meta { gap: 8px 18px; }
  .foot { justify-content: center; text-align: center; }
}
