/* Tilism Design — final Pine palette and editorial refinements. */
:root {
  --bg: #3d2b22;
  --bg-2: #2b1d17;
  --ink: #fff8ed;
  --ink-2: #e4ded2;
  --ink-3: #ccc7bc;
  --accent: #edae36;
  --on-accent: #2b1d17;
  --line: rgba(255,248,237,.17);
  --line-2: rgba(255,248,237,.36);
  --serif: 'Chivo', 'Arial Narrow', sans-serif;
  --sans: 'Karla', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  color-scheme: dark;
}
body { font-size: 17px; }
.nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.nav.is-scrolled, body.menu-open .nav { background: var(--bg); backdrop-filter: none; }
.nav-links { font-family: var(--sans); font-size: 14px; letter-spacing: -.01em; text-transform: none; }
.nav-links a span { font: 10px var(--mono); }
.hero { background-image: none; }
.hero::before { content: ''; position: absolute; top: 96px; bottom: 32px; left: var(--gutter); width: 1px; background: var(--line); opacity: .5; pointer-events: none; }
.hero-inner { padding-top: 30px; }
.hero-title {
  font-size: clamp(3.2rem, 8.6vw, 8rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.065em;
  margin: 3.5rem 0 2.5rem;
}
.hero-title .line { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
.hero-title em { font-weight: 400; letter-spacing: -.07em; }
.hero-title .line > span { max-width: 100%; }
.hero-meta { font-size: 10px; letter-spacing: .08em; }
.hero-sub { font-size: 18px; line-height: 1.65; font-weight: 400; max-width: 37rem; }
.hero-sub strong { font-weight: 500; }
.hero-foot { padding-top: 24px; }
.hero-scene, .hero-play { border-radius: 2px; background: transparent; padding: 10px 12px; font-size: 10px; }
.hero-scene[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.hero-sequence > span { font-size: 10px; }
.btn { border-radius: 2px; font-size: 14px; height: 49px; gap: 18px; font-weight: 500; }
.btn-sm { height: 39px; font-size: 12px; }
.btn-line { background: transparent; }
.icon-btn { border-radius: 2px; border-color: var(--line-2); }
h2 { font-weight: 500; font-size: clamp(2.6rem,5vw,4.8rem); line-height: 1.04; letter-spacing: -.055em; }
h2 em { color: var(--accent); font-weight: 400; }
.label { font-size: 10px; letter-spacing: .08em; }
.label::before { width: 5px; height: 5px; border-radius: 0; }
.intro, .about-copy .lead { font-weight: 400; }
.about-copy .lead { font-size: clamp(1.35rem,2.3vw,1.95rem); line-height: 1.5; letter-spacing: -.025em; }
.about-copy .lead em { color: var(--accent); font-size: 1em; }
.def-word { font-family: var(--serif); font-size: 44px; font-weight: 500; letter-spacing: -.06em; }
.def-body { font-size: 15px; }
.ticker { padding: 19px 0; }
.ticker-track span { font-size: clamp(1.1rem,2vw,1.8rem); letter-spacing: -.035em; font-weight: 500; }
.ticker-track span:nth-child(even) { font-style: normal; }
.p-btn .name { font-weight: 500; font-size: clamp(1.7rem,2.7vw,2.6rem); letter-spacing: -.045em; }
.p-btn .name em { font-weight: 400; }
.tags li, .chip span { border-radius: 2px; }
.stage { border-radius: 2px; }
.step h3 { font-weight: 500; font-size: clamp(1.6rem,2vw,2rem); line-height: 1.1; letter-spacing: -.045em; }
.step p { line-height: 1.7; }
.field input, .field textarea { font-weight: 400; border-radius: 0; }
.footer-tag { font-style: normal; font-size: 21px; font-weight: 400; letter-spacing: -.025em; }
.form-note { color: var(--ink-2); font-size: 12px; margin-top: -8px; }
.studio-promise { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; border-top: 1px solid var(--line-2); margin-top: 56px; padding-top: 26px; }
.studio-promise span { display: block; color: var(--ink-3); font: 10px var(--mono); text-transform: uppercase; margin-bottom: 12px; }
.studio-promise p { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; max-width: 240px; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; }
.skip-link:focus { top: 10px; }
@media(max-width:960px) {
  .hero-title { font-size: clamp(3.4rem,8.8vw,5.5rem); }
  .hero-sub { font-size: 17px; }
  .hero-sequence { margin: 1.4rem 0; }
  .hero::before { display: none; }
}
@media(max-width:600px) {
  .hero { min-height: 850px; min-height: max(850px,100svh); }
  .hero-inner { padding-top: 24px; }
  .hero-title { font-size: clamp(2.8rem,10.7vw,4.2rem); margin: 4rem 0 2.2rem; }
  .hero-meta { font-size: 9px; }
  .hero-sequence { gap: 14px; margin: 2rem 0; }
  .hero-scene-buttons { gap: 6px; }
  .hero-scene, .hero-play { font-size: 9px; padding: 10px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { font-size: 12px; padding: 0 16px; }
  h2 { font-size: 39px; }
  .studio-promise { grid-template-columns: 1fr; gap: 20px; }
  .studio-promise div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
  .studio-promise p { font-size: 17px; }
  .studio-promise span { line-height: 1.7; }
  }

/* Keep the composition deliberate on tall preview windows, too. */
.hero-meta { margin-bottom: clamp(48px, 7vh, 100px); }
.hero { min-height: min(100svh, 1000px); }
@media(max-width:600px) { .hero { min-height: max(850px,100svh); } .hero-meta { margin-bottom: 140px; } .hero-title { margin-top: 3rem; } }

body.menu-open { overflow: hidden; }
.mobile-menu { overflow-y: auto; }

/* V4's four-board process, translated into V3's type and palette. */
.panel {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border: 1px solid var(--line-2);
  border-radius: 3px;
  list-style: none;
  overflow: hidden;
}
.panel > li { position: relative; padding: 24px; }
.panel > li + li { border-left: 1px dashed var(--line-2); }
.panel .plate-box { position: relative; aspect-ratio: 1; margin-bottom: 24px; }
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.panel .step-n { margin-bottom: 16px; color: var(--accent); }
.panel .step-n b { font: 500 13px var(--mono); }
.panel h3 { font: 500 clamp(19px,1.65vw,24px)/1.15 var(--serif); letter-spacing: -.035em; margin-bottom: 16px; min-height: 2.3em; }
.panel > li > p:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.footer { padding: 28px 0; }
.footer-lean { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; font: 11px/1.7 var(--mono); color: var(--ink-2); }
.footer-lean p { color: var(--ink); }
.footer-lean p span { display: block; color: var(--ink-3); font-size: 10px; margin-top: 4px; }
.footer-lean a { text-decoration: none; }
.footer-lean a:hover { color: var(--accent); }
.footer-up { display: inline-flex; align-items: center; gap: 12px; }
.footer-up svg { width: 14px; height: 14px; transform: rotate(-90deg); }
@media(max-width:960px) {
  .panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel > li:nth-child(3) { border-left: 0; }
  .panel > li:nth-child(n+3) { border-top: 1px dashed var(--line-2); }
}
@media(max-width:600px) {
  .panel { grid-template-columns: 1fr; }
  .panel > li + li { border-left: 0; border-top: 1px dashed var(--line-2); }
  .panel .plate-box { max-width: 260px; margin: 0 auto 20px; }
  .panel h3 { min-height: 0; font-size: 24px; }
  .footer-lean { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  .footer-lean > a:not(.footer-up) { grid-row: 2; grid-column: 1 / -1; }
  .footer-up { font-size: 10px; }
}

/* Final typographic rhythm and interaction treatment. */
:root { --gutter: clamp(24px,4.2vw,64px); }
body { font-weight: 400; }
.hero-title { letter-spacing: -.052em; line-height: 1.025; }
.hero-title em { letter-spacing: -.05em; }
h2 { letter-spacing: -.04em; line-height: 1.07; }
.section { padding: clamp(72px,8vw,112px) 0; }
.section-head { margin-bottom: clamp(36px,4vw,56px); }
.intro { line-height: 1.8; font-size: 17px; max-width: 35rem; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.ticker-track { animation: tick 48s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker-track span { font-family: var(--sans); font-weight: 400; font-size: 23px; }
.ticker { padding: 20px 0; }
.p-btn .name { letter-spacing: -.03em; }
.p-btn:hover .name { transform: translateX(3px); }
.p-detail p { font-size: 16px; line-height: 1.8; }
.panel h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
.panel > li { padding: 24px 22px 28px; }
.panel > li > p:last-child { font-size: 15px; line-height: 1.8; }
.field > label, .field legend { font-size: 11px; letter-spacing: .04em; }
.field input, .field textarea { border: 1px solid var(--line-2); background: rgba(238,231,197,.035); padding: 13px 15px; font-size: 16px; line-height: 1.6; }
.field input { min-height: 50px; }
.field textarea { min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.chip span { min-height: 40px; display: inline-flex; align-items: center; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero-scene, .hero-play { min-height: 40px; }
.form-status { font-family: var(--sans); text-transform: none; font-size: 14px; line-height: 1.6; letter-spacing: 0; }
@media(max-width:600px) {
  .hero-title { font-size: clamp(2.5rem,10.5vw,4rem); }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { min-height: 48px; }
  .hero-sequence { margin: 24px 0; }
  .hero-scene, .hero-play { font-size: 10px; }
  h2 { font-size: clamp(32px,9vw,40px); }
  .intro { font-size: 16px; }
  .section-head .label { margin-bottom: 22px; }
  .panel > li { padding: 24px; }
  .panel .plate-box { max-width: 210px; margin-bottom: 12px; }
  .footer-lean { font-size: 10px; }
  .footer-lean p span { font-size: 10px; }
}

/* Keep every animation frame clear of the hero copy and metadata. */
.hero-canvas { top: 140px; height: calc(100% - 300px); -webkit-mask-image: linear-gradient(90deg,transparent 48%,#000 61%); mask-image: linear-gradient(90deg,transparent 48%,#000 61%); }
@media(max-width:960px) and (min-width:601px) { .hero-canvas { top: 150px; height: calc(100% - 330px); -webkit-mask-image: linear-gradient(90deg,transparent 48%,#000 66%); mask-image: linear-gradient(90deg,transparent 48%,#000 66%); } }
@media(max-width:600px) { .hero-canvas { top: 140px; height: 180px; -webkit-mask-image: linear-gradient(180deg,#000 60%,transparent); mask-image: linear-gradient(180deg,#000 60%,transparent); } }

/* Identical, non-shrinking halves make the ticker wrap without a visible seam. */
.ticker-track { gap: 0; }
.ticker-group { display: flex; flex: 0 0 auto; width: max-content; min-width: 100vw; justify-content: space-around; }
.ticker-group > span { flex-shrink: 0; }

/* Homepage: bring the work closer and keep exploration controls secondary. */
.hero { min-height: clamp(620px,82svh,820px); }
.hero-animation-stage { display: none; }
@media(min-width:961px) {
  .hero-canvas { top: 108px; height: calc(100% - 190px); }
}
.hero-inner { padding-top: 28px; padding-bottom: 28px; }
.hero-meta { margin-bottom: clamp(24px,4vh,48px); }
.hero-title { margin: 20px 0 30px; font-size: clamp(3.2rem,7.8vw,7rem); }
.hero-foot { margin-top: auto; }
.hero-sequence { align-items: flex-start; gap: 12px; margin: 16px 0 0; }
.hero-animation-options { font: 11px/1.6 var(--mono); color: var(--ink-3); }
.hero-animation-options summary { display: list-item; min-height: 44px; padding: 13px 8px; cursor: pointer; }
.hero-animation-options summary:hover { color: var(--ink); }
.hero-animation-options summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-animation-options .hero-scene-buttons { padding: 4px 0 8px; }
.hero-animation-options .hero-scene { font-size: 10px; }
.hero-sequence .hero-play { min-height: 44px; padding: 10px; font-size: 10px; border-color: transparent; color: var(--ink-3); }
.hero-sequence .hero-play:hover { border-color: var(--line-2); color: var(--ink); }
.nav-links a[aria-current="location"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.mobile-menu a[aria-current="location"] { color: var(--accent); text-decoration: underline; text-underline-offset: 8px; }
.contact-email { overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-email:hover { color: var(--accent); }
@media(max-width:960px) {
  .hero { min-height: 620px; }
  .hero-title { font-size: clamp(3.2rem,8vw,5.5rem); }
}
@media(max-width:600px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 24px; padding-bottom: 24px; }
  .hero-meta { margin-bottom: 24px; }
  .hero-title { margin: 12px 0 28px; font-size: clamp(2.5rem,10.5vw,4rem); }
  .hero-foot { gap: 22px; }
  .hero-sequence { margin-top: 12px; gap: 8px; }
  .hero-title { margin-bottom: 12px; }
  .hero-animation-stage { display: block; position: relative; width: 100%; height: clamp(210px,58vw,280px); margin-bottom: 20px; }
  .hero-animation-stage .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; -webkit-mask-image: none; mask-image: none; }
}
