/* BoxBeauty website styles */
:root {
  --ink: #191917;
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --acid: #eaff63;
  --muted: #77756f;
  --line: rgba(25, 25, 23, 0.16);
  --white: #fff;
  --radius: 28px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 140px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--acid); }
.skip-link:focus { top: 16px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Access gate */
body.access-pending > *:not(.access-gate) { visibility: hidden; }
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}
.access-gate[hidden] { display: none; }
.access-gate-card {
  width: min(100%, 520px);
  padding: clamp(32px, 7vw, 72px);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(35,32,24,.14);
}
.access-gate-mark {
  position: relative;
  width: 42px;
  height: 42px;
  margin-bottom: 54px;
  border: 2px solid var(--ink);
  transform: rotate(45deg);
}
.access-gate-mark span {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--ink);
}
.access-gate-card .kicker { margin-bottom: 18px; }
.access-gate-card h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 500;
}
.access-gate-intro {
  margin: 24px 0 34px;
  color: #66645f;
  line-height: 1.75;
}
.access-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}
.access-input-wrap {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--white);
}
.access-input-wrap:focus-within { outline: 3px solid rgba(234,255,99,.8); outline-offset: 3px; }
.access-input-wrap input {
  min-width: 0;
  flex: 1;
  padding: 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  letter-spacing: .12em;
}
.access-toggle {
  padding: 0 16px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.access-toggle:hover { color: var(--ink); background: var(--paper); }
.access-submit { width: 100%; margin-top: 18px; border: 0; cursor: pointer; }
.access-submit:disabled { cursor: wait; opacity: .6; }
.access-message { min-height: 22px; margin: 14px 0 0; color: #9a3229; font-size: 13px; }
.access-message.is-success { color: #356b3d; }
.access-footnote { margin: 34px 0 0; color: var(--muted); font-size: 11px; }


.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 26px 0; transition: .3s ease; }
.site-header.is-scrolled { padding: 14px 0; background: rgba(245,243,238,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .12em; font-size: 14px; }
.brand-mark { position: relative; width: 30px; height: 30px; border: 2px solid currentColor; transform: rotate(45deg); }
.brand-mark span { position: absolute; inset: 7px; border: 1px solid currentColor; }
.site-nav { display: flex; gap: 34px; margin-left: auto; }
.site-nav a { position: relative; color: #4f4e49; font-size: 14px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--ink); transition: right .25s; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; }
.nav-cta { padding: 12px 18px; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.nav-cta:hover { background: var(--ink); color: var(--white); }
.menu-button { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-button span:not(.sr-only) { display: block; height: 1px; margin: 7px 0; background: var(--ink); }

/* Hero */
.hero { min-height: 100vh; padding: 170px 0 40px; display: flex; flex-direction: column; overflow: hidden; }
.hero-grid { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; }
.eyebrow, .kicker { margin: 0 0 28px; font-size: 11px; letter-spacing: .2em; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--ink); }
.hero h1 { margin: 0; font-size: clamp(64px, 7.3vw, 112px); line-height: .88; letter-spacing: -.065em; font-weight: 600; }
.hero h1 em { position: relative; font-family: Georgia, serif; font-weight: 400; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: -2%; bottom: 4px; height: 12px; z-index: -1; background: var(--acid); transform: rotate(-1.5deg); }
.hero-lead { max-width: 550px; margin: 36px 0; color: #5d5b55; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 32px; }
.button { min-height: 54px; padding: 0 24px; transition: transform .25s, background .25s; }
.button-dark { color: var(--white); background: var(--ink); }
.button:hover { transform: translateY(-3px); }
.button-dark:hover { background: #34342f; }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.hero-visual { position: relative; height: 620px; }
.visual-orbit { position: absolute; border: 1px solid rgba(25,25,23,.15); border-radius: 50%; }
.orbit-one { inset: 4% -18% 8% 5%; }
.orbit-two { inset: 19% -2% 24% 20%; }
.visual-card { position: absolute; box-shadow: 0 34px 70px rgba(35,32,24,.18); }
.card-back { left: 2%; top: 10%; width: 58%; aspect-ratio: .72; padding: 32px; color: var(--white); background: #bbb9b0; transform: rotate(-11deg); }
.card-back span { font-size: 11px; }
.card-back p { position: absolute; left: 32px; bottom: 24px; margin: 0; font-size: 30px; line-height: .9; letter-spacing: -.05em; }
.card-front { right: 3%; top: 18%; width: 62%; aspect-ratio: .76; padding: 30px; background: var(--acid); transform: rotate(7deg); }
.card-monogram { padding-top: 33%; font-size: clamp(46px, 6vw, 82px); font-weight: 700; letter-spacing: -.09em; }
.card-monogram span { font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.card-front > p { font-family: Georgia, serif; font-style: italic; font-size: 20px; }
.card-footer { position: absolute; left: 30px; right: 30px; bottom: 26px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; }
.floating-note { position: absolute; right: 0; bottom: 8%; width: 130px; height: 130px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; text-align: center; font-family: Georgia, serif; font-style: italic; transform: rotate(-8deg); }
.hero-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; font-size: 9px; letter-spacing: .18em; }
.hero-line { height: 1px; background: var(--line); }

/* Content */
.statement { background: var(--white); }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 70px; }
.section-label { display: flex; align-items: flex-start; gap: 14px; font-size: 12px; }
.section-label span { color: var(--muted); }
.section-label p { margin: 0; font-weight: 600; }
.statement-content h2, .section-head h2, .process h2, .contact h2 { margin: 0; font-size: clamp(46px, 5.8vw, 82px); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }
.statement-content h2 span, .contact h2 span { font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.statement-body { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 850px; margin: 56px 0 0 auto; }
.statement-body p { margin: 0; color: #66645f; line-height: 1.85; }
.metrics { padding: 0 0 120px; background: var(--white); }
.metrics-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.metric { padding: 48px 32px 10px 0; }
.metric + .metric { padding-left: 32px; border-left: 1px solid var(--line); }
.metric strong { display: block; margin-bottom: 34px; color: #cbc8bf; font-size: 52px; font-weight: 500; }
.metric span { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.metric p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.capabilities { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 70px; margin-bottom: 80px; }
.capability-list { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability { position: relative; min-height: 430px; padding: 32px; }
.capability + .capability { border-left: 1px solid var(--line); }
.capability-number { color: var(--muted); font-size: 11px; }
.capability-icon { height: 105px; margin: 50px 0 35px; display: flex; align-items: center; }
.capability-icon i { width: 64px; height: 64px; border: 1px solid var(--ink); border-radius: 50%; margin-right: -28px; }
.icon-square i { border-radius: 0; transform: rotate(45deg); background: var(--acid); }
.icon-circle i { margin: 0; border-radius: 50%; background: var(--ink); box-shadow: 28px 0 0 var(--acid); }
.capability h3 { margin: 0 0 15px; font-size: 24px; }
.capability p { max-width: 310px; color: #66645f; line-height: 1.75; }
.capability-tag { position: absolute; bottom: 28px; left: 32px; font-size: 9px; letter-spacing: .18em; }
.edit-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; }

.process { color: var(--white); background: var(--ink); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; }
.section-label.light { margin-bottom: 100px; color: #b7b5ad; }
.process-intro > p:last-child { max-width: 450px; margin-top: 35px; color: #a9a79f; line-height: 1.8; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-list li > span { color: var(--acid); font-size: 11px; }
.process-list h3 { margin: 0 0 8px; font-size: 22px; }
.process-list p { margin: 0; color: #aaa89f; line-height: 1.6; }
.contact { min-height: 650px; display: grid; place-items: center; text-align: center; background: var(--acid); }
.contact h2 { font-size: clamp(48px, 6vw, 92px); }
.email-link { width: min(720px,100%); margin: 70px auto 0; padding: 18px 4px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); font-size: clamp(20px,3vw,34px); }
.email-link b { font-weight: 400; transition: transform .25s; }
.email-link:hover b { transform: translate(5px,-5px); }
.contact-note { color: #585845; font-size: 11px; }

/* Footer */
.site-footer { padding: 72px 0 30px; color: var(--white); background: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding-bottom: 70px; }
.footer-brand { justify-self: start; }
.footer-nav { display: flex; gap: 28px; color: #aaa89f; font-size: 13px; }
.footer-nav a:hover, .back-top:hover { color: var(--acid); }
.back-top { justify-self: end; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: #88877f; font-size: 10px; letter-spacing: .05em; }
.footer-bottom div { display: flex; gap: 8px; }

/* Legal pages */
.legal-page { min-height: 100vh; padding: 150px 0 100px; background: var(--white); }
.legal-wrap { width: min(calc(100% - 48px), 820px); margin: auto; }
.legal-wrap h1 { font-size: clamp(48px,7vw,80px); letter-spacing: -.05em; }
.legal-wrap h2 { margin-top: 42px; }
.legal-wrap p, .legal-wrap li { color: #5f5d57; line-height: 1.8; }
.legal-alert { padding: 18px 20px; border-left: 4px solid var(--acid); background: var(--paper); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-visual { height: 520px; }
  .statement-grid, .section-head { grid-template-columns: 150px 1fr; gap: 30px; }
  .process-grid { gap: 60px; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 96px 0; }
  .nav-cta { display: none; }
  .menu-button { display: block; margin-left: auto; z-index: 2; }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 80px 32px; background: var(--acid); transform: translateX(100%); transition: transform .35s ease; }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-size: 36px; color: var(--ink); }
  .hero { padding-top: 135px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 530px; margin-top: 40px; }
  .statement-grid, .section-head, .process-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 55px; }
  .statement-body { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .capability-list { grid-template-columns: 1fr; }
  .capability { min-height: 360px; }
  .capability + .capability { border-left: 0; border-top: 1px solid var(--line); }
  .section-label.light { margin-bottom: 55px; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
}

@media (max-width: 560px) {
  .access-gate { padding: 16px; }
  .access-gate-card { padding: 30px 24px; }
  .access-gate-mark { margin-bottom: 38px; }

  .hero h1 { font-size: 58px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-visual { height: 410px; }
  .card-back { left: -5%; width: 62%; }
  .card-front { width: 65%; }
  .floating-note { width: 96px; height: 96px; font-size: 13px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .metric { padding: 30px 0; }
  .metric strong { margin-bottom: 18px; }
  .process-list li { grid-template-columns: 45px 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .back-top { justify-self: start; }
  .footer-nav { flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
}

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