/* Refract House — blush + deep navy, editorial. Serif display + clean body.
   Accent = space blue; the spectrum lives in the animated hero diagram. */

:root {
  --ink: #17233a;          /* deep navy — text */
  --muted: #6b6b7b;        /* muted slate */
  --paper: #f7ddd4;        /* soft blush ground */
  --paper-2: #efd0c6;      /* deeper blush panel */
  --card: #fdf1ec;         /* light blush-white cards */
  --line: #e8cabf;         /* blush hairline */
  --dark: #14202f;         /* deep navy — footer + CTA */
  --accent: #1e3a63;       /* space blue */
  --accent-2: #2b4d80;     /* hover */
  --rose: #b07d7a;         /* dusty rose accent (labels) */
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 40px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.005em; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 221, 212, 0.86);
  backdrop-filter: saturate(1.05) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 23px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; display: block; }
.brand b { font-weight: 600; }
.brand span { font-weight: 500; }
.brand span i { font-style: normal; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.nav-links a.active { color: var(--accent); }
.nav-cta { padding: 9px 17px; border-radius: 999px; background: var(--accent); color: #fff !important; font-weight: 600; }
.nav-cta:hover { text-decoration: none; background: var(--accent-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 76px) 0; }

.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 600; color: var(--rose); margin-bottom: 18px; }
.lead { font-size: clamp(19px, 2.3vw, 23px); color: var(--muted); max-width: 60ch; line-height: 1.5; }

h1.display { font-size: clamp(44px, 8vw, 84px); letter-spacing: -0.01em; }
h2.title { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 22px; }

/* ---------- Hero ---------- */
.hero { background:
    radial-gradient(90% 80% at 85% 10%, rgba(176,125,122,0.16), transparent 60%),
    linear-gradient(180deg, #fbe7e0, var(--paper)); }
.hero-inner { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding: clamp(52px, 8vw, 104px) 0; }
.hero h1 { color: var(--ink); }
.hero .lead { margin-top: 22px; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(440px, 92%); height: auto; }
.hero-mark svg { width: min(400px, 88%); height: auto; }
.stage-word { font-family: var(--sans); font-weight: 600; letter-spacing: 0.26em; font-size: 12px; color: var(--muted); text-transform: uppercase; margin-top: 24px; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: 0.16s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; background: var(--accent-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(23,35,58,0.30); }
.btn-outline:hover { text-decoration: none; border-color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { text-decoration: none; filter: brightness(1.25); }

/* ---------- Blocks ---------- */
.grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: 0.16s; }
a.card:hover { text-decoration: none; border-color: var(--rose); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--muted); font-size: 15.5px; }
.card .num { font-family: var(--sans); font-weight: 600; color: var(--rose); font-size: 13px; letter-spacing: 0.12em; }

.service-row { border-top: 1px solid var(--line); padding: 38px 0; display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row h3 { font-size: 30px; }
.service-row .who { color: var(--rose); font-size: 12px; font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }
.service-row p { color: var(--muted); }
.service-row .go { font-family: var(--sans); margin-top: 16px; font-weight: 600; font-size: 15px; display: inline-block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.panel { background: var(--paper-2); border-radius: 22px; padding: clamp(28px, 4vw, 48px); }
.panel-dark { background: var(--dark); color: #fff; border-radius: 22px; padding: clamp(34px, 5vw, 60px); }
.panel-dark h2 { color: #fff; }
.panel-dark p { color: rgba(255,255,255,0.78); }

.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .dot { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--accent); font-size: 18px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--serif); font-weight: 600; font-size: 23px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rose); font-size: 24px; font-weight: 400; font-family: var(--sans); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }

.tag { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--rose); border-radius: 999px; padding: 5px 12px; vertical-align: middle; }

.portrait { aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.contact-detail { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail .k { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.contact-detail .v { font-size: 19px; font-weight: 500; margin-top: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.78); padding: clamp(48px, 7vw, 80px) 0 40px; }
.site-footer .foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.78); font-family: var(--sans); }
.site-footer a:hover { color: #fff; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-tag { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.62); margin-top: 12px; font-size: 18px; }
.foot-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 12.5px; font-family: var(--sans); color: rgba(255,255,255,0.58); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; letter-spacing: 0.04em; }

.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.center { text-align: center; } .maxprose { max-width: 66ch; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .cols-3, .cols-2, .split, .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a.nav-cta { border: 0; width: auto; margin-top: 12px; }
  .nav-toggle { display: block; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }

/* ---------- Animated refraction diagram (hero) ---------- */
.hero .hero-mark .refract-anim { width: min(500px, 100%); border-radius: 16px; box-shadow: 0 24px 60px rgba(23,35,58,0.22); }
.refract-anim .prism, .refract-anim .door, .refract-anim .beam-in, .refract-anim .beam-mid, .refract-anim .ray { stroke-dasharray: 1; }
.refract-anim .prism   { animation: rf-prism 7.5s ease-in-out infinite; }
.refract-anim .door    { animation: rf-prism 7.5s ease-in-out infinite; }
.refract-anim .beam-in { animation: rf-in 7.5s ease-in-out infinite; }
.refract-anim .beam-mid{ animation: rf-mid 7.5s ease-in-out infinite; }
.refract-anim .ray     { animation: rf-out 7.5s ease-in-out infinite; }
@keyframes rf-prism { 0%{stroke-dashoffset:1;opacity:.9} 4%{stroke-dashoffset:1} 16%{stroke-dashoffset:0} 88%{stroke-dashoffset:0;opacity:.9} 95%{opacity:0} 96%,100%{stroke-dashoffset:1;opacity:0} }
@keyframes rf-in    { 0%,16%{stroke-dashoffset:1;opacity:1} 30%{stroke-dashoffset:0} 88%{stroke-dashoffset:0;opacity:1} 95%{opacity:0} 96%,100%{stroke-dashoffset:1;opacity:0} }
@keyframes rf-mid   { 0%,26%{stroke-dashoffset:1;opacity:.5} 34%{stroke-dashoffset:0} 88%{stroke-dashoffset:0;opacity:.5} 95%{opacity:0} 96%,100%{stroke-dashoffset:1;opacity:0} }
@keyframes rf-out   { 0%,30%{stroke-dashoffset:1;opacity:1} 52%{stroke-dashoffset:0} 88%{stroke-dashoffset:0;opacity:1} 95%{opacity:0} 96%,100%{stroke-dashoffset:1;opacity:0} }
