/* =========================================================
   Arcform Co. — landing page
   Brand: Precision Studio · minimalist Swiss
   Palette: Ink #171717 · Paper #FAFAF7 · Slate #6B6F76 · Orange #E85D2F
   ========================================================= */

:root {
  --ink: #171717;
  --paper: #FAFAF7;
  --paper-warm: #F2F1EC;
  --slate: #6B6F76;
  --slate-light: #B8BCC2;
  --line: #E5E3DC;
  --orange: #E85D2F;
  --orange-soft: #F8E4DA;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --section-py: clamp(80px, 12vw, 160px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--orange); }
button { font-family: inherit; cursor: pointer; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.nav__mark { width: 28px; height: 28px; color: var(--ink); }
.nav__name {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--slate); }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 9px 18px;
  background: var(--ink); color: var(--paper) !important;
  border-radius: 999px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--orange); color: var(--paper) !important; }

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 140px) var(--pad) clamp(80px, 12vw, 160px);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 28px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(232, 93, 47, 0.5);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232, 93, 47, 0.55); }
  50%     { box-shadow: 0 0 0 10px rgba(232, 93, 47, 0); }
}

.hero__title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 50ch;
  margin: 0 0 40px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__svg { width: 100%; max-width: 480px; height: auto; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper) !important;
}
.btn--primary:hover { background: var(--orange); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink) !important; }

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--ink);
}
.marquee__track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: scroll 50s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Section primitives
   ========================================================= */
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 20px;
}
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 18ch;
}
.section__lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 60ch;
  margin: 0 0 64px;
}

/* =========================================================
   Work
   ========================================================= */
.work { padding-block: var(--section-py); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.work__card {
  background: var(--paper);
  padding: 48px 36px;
  transition: background 220ms var(--ease);
}
.work__card:hover { background: var(--paper-warm); }
.work__num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--orange);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.work__card h3 {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.work__card p {
  font-size: 15px; line-height: 1.6;
  color: var(--slate);
  margin: 0 0 20px;
}
.work__tag {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink) !important;
  margin: 0 !important;
}

@media (max-width: 880px) {
  .work__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Story
   ========================================================= */
.story {
  background: var(--paper-warm);
  padding-block: var(--section-py);
}
.story__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.story__copy p {
  font-size: 17px; line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 56ch;
}

.story__stats {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.story__stats li { display: flex; flex-direction: column; gap: 6px; }
.story__stats strong {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.story__stats span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--slate);
}

.story__card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  gap: 36px;
  position: sticky; top: 100px;
}
.story__sig-name {
  font-family: 'Caveat', 'Apple Chancery', cursive;
  font-size: 32px;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.story__sig-role {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
  margin: 4px 0 0;
}
.story__sig-arc { color: var(--ink); width: 100px; height: 100px; align-self: flex-end; }

@media (max-width: 880px) {
  .story__inner { grid-template-columns: 1fr; }
  .story__card { position: static; }
  .story__stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Notify (email)
   ========================================================= */
.notify {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section-py);
}
.notify__inner { max-width: 720px; text-align: center; }
.notify__eyebrow { color: var(--slate-light) !important; }
.notify__title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 auto 24px;
  max-width: 14ch;
}
.notify__sub {
  font-size: 17px; line-height: 1.6;
  color: var(--slate-light);
  margin: 0 auto 40px;
  max-width: 56ch;
}
.notify__form {
  display: flex; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px;
  max-width: 520px;
  margin: 0 auto;
  transition: border-color 200ms var(--ease);
}
.notify__form:focus-within { border-color: var(--orange); }
.notify__form input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  padding: 10px 20px;
  outline: 0;
}
.notify__form input::placeholder { color: var(--slate-light); }
.notify__form .btn { padding: 12px 24px; }

.notify__legal {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--slate);
  margin-top: 18px;
}

.notify__success {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 16px;
  color: var(--paper);
}
.notify__success[hidden] { display: none; }
.notify__check { width: 28px; height: 28px; }

/* =========================================================
   Countdown
   ========================================================= */
.countdown {
  background: var(--paper);
  padding-block: clamp(60px, 8vw, 100px);
  text-align: center;
}
.countdown__label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 28px;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 800px; margin: 0 auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.countdown__cell {
  background: var(--paper);
  padding: 28px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.countdown__cell span {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__cell em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
}
.countdown__date {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
  margin-top: 24px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--paper-warm); padding-top: clamp(60px, 8vw, 100px); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__mark { width: 56px; height: 56px; color: var(--ink); margin-bottom: 4px; }
.footer__name {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0;
}
.footer__tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate);
  margin: 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-size: 14px;
}
.footer__cols p { margin: 0 0 6px; color: var(--slate); line-height: 1.6; }
.footer__cols a:hover { color: var(--orange); }
.footer__head {
  font-family: var(--font-mono);
  font-size: 11px !important; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink) !important;
  margin-bottom: 12px !important;
}

.footer__stamp {
  border-top: 1px solid var(--line);
  padding: 22px var(--pad);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--slate);
  max-width: var(--max);
  margin: 0 auto;
  gap: 16px;
}

@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__stamp { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Subtle scroll-in for sections */
@media (prefers-reduced-motion: no-preference) {
  .work__card, .story__copy, .story__card, .notify__inner {
    opacity: 0; transform: translateY(20px);
    animation: rise 800ms var(--ease) forwards;
  }
  .work__card:nth-child(1) { animation-delay: 80ms; }
  .work__card:nth-child(2) { animation-delay: 160ms; }
  .work__card:nth-child(3) { animation-delay: 240ms; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}
