/* ===================================================================
   Atlas — styles.css
   Clean, flat, hel.io-inspired. Pure white + black, pill buttons,
   generous whitespace, flat cards. No glass, no grain, no glow.
   =================================================================== */

:root {
  /* Palette — minimal */
  --black: #000000;
  --white: #ffffff;
  --ink: #0a0a0a;        /* near-black text */
  --muted: #7a7a7a;      /* secondary text */
  --line: #ececec;       /* hairlines */
  --soft: #f6f6f6;       /* soft card fill */

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius */
  --r-card: 20px;
  --r-pill: 48px;

  /* Shadow — very subtle, flat */
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);

  /* Layout */
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--black); color: var(--white);
  padding: 0.6rem 1rem; z-index: 999;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons (pill style, hel.io) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.btn--sm { height: 40px; padding: 0 20px; font-size: 0.78rem; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 0.9rem; }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #1a1a1a; transform: translateY(-1px); }

.btn--light { background: var(--white); color: var(--black); border-color: var(--line); }
.btn--light:hover { border-color: var(--black); transform: translateY(-1px); }

.btn__icon {
  width: 1.15em; height: 1.15em;
  margin-right: 0.55em;
  vertical-align: -0.18em;
  fill: currentColor;
}

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--muted); }
.nav__links .btn { margin-left: 0.5rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  font-size: 0; line-height: 0;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* ===================================================================
   SECTION HEADS
   =================================================================== */
.section-head {
  max-width: 640px;
  margin: 0 auto 5rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  padding: 9rem 1.5rem 6rem;
  text-align: center;
}
.hero__content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: 260px; height: auto;
  margin-bottom: 3rem;
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.hero__title em { font-style: normal; color: var(--muted); }
.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 2.6rem;
}
.hero__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__meta strong { color: var(--ink); font-weight: 600; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ===================================================================
   SERVICES
   =================================================================== */
.services { padding: 5rem 1.5rem; }
.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.card__text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.6rem;
  transition: color 0.2s var(--ease);
}
.card__link:hover { color: var(--muted); }

/* ===================================================================
   PROCESS
   =================================================================== */
.process { padding: 5rem 1.5rem; }
.timeline {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.step { position: relative; padding-top: 3rem; }
.step__node {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 600;
}
.step__body h3 {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 0.5rem;
  color: var(--ink);
}
.step__body p {
  font-size: 0.95rem; color: var(--muted);
  line-height: 1.6; margin: 0;
}

/* ===================================================================
   WORK
   =================================================================== */
.work { padding: 5rem 1.5rem; }
.work__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.casecard {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.casecard:hover { border-color: var(--ink); transform: translateY(-2px); }
.casecard__top {
  display: flex; justify-content: space-between; align-items: center;
}
.tag {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.year { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.casecard h3 {
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: -0.02em; margin: 0.2rem 0 0;
  color: var(--ink);
}
.casecard p {
  font-size: 0.95rem; color: var(--muted);
  line-height: 1.6; margin: 0; flex: 1;
}
.casecard__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.8rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}
.casecard__foot .arrow { color: var(--ink); font-size: 1rem; }

/* ===================================================================
   ORDER
   =================================================================== */
.order { padding: 6rem 1.5rem; }
.order__card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 4.5rem 3rem;
}
.order__card .eyebrow { margin-bottom: 1rem; }
.order__card .section-title { margin-bottom: 1.2rem; }
.order__card .section-lead {
  max-width: 520px; margin: 0 auto 2.4rem;
}
.order__hint {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact { padding: 6rem 1.5rem 5rem; text-align: center; }
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__cta {
  display: flex; gap: 0.8rem;
  justify-content: center; flex-wrap: wrap;
  margin: 2.4rem 0 0;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.5rem 2.5rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer__brand { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer__brand img { height: 32px; width: auto; }
.footer__brand p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.footer__links { display: flex; gap: 1.5rem; justify-content: center; }
.footer__links a { font-size: 0.9rem; font-weight: 500; color: var(--ink); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--muted); }
.footer__copy { font-size: 0.85rem; color: var(--muted); text-align: right; margin: 0; }

/* ===================================================================
   REVEAL (subtle, flat)
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   MOBILE MENU
   =================================================================== */
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  background: var(--white);
  display: none;
  z-index: 90;
}
.mobile-menu.open { display: flex; }
.mobile-menu > nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}
.mobile-menu a:not(.btn) {
  font-size: 1.3rem; font-weight: 500; color: var(--ink);
}
body.menu-open { overflow: hidden; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
  .footer__brand { align-items: center; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 640px) {
  .hero { padding: 5rem 1.5rem 4rem; }
  .hero__logo { width: 200px; margin-bottom: 2rem; }
  .services, .process, .work, .order { padding: 4rem 1.5rem; }
  .contact { padding: 4rem 1.5rem 3rem; }
  .services__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .order__card { padding: 3rem 1.5rem; }
  .hero__meta { gap: 0.9rem; font-size: 0.82rem; }
  .hero__meta .dot { display: none; }
  .footer__links { gap: 1rem; flex-wrap: wrap; }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}