/* Studio Kallio demo site. Designed and developed by Smit Desai, https://smitdev.online/ */
@font-face {
  font-family: "Epilogue";
  src: url("/assets/fonts/epilogue-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --red: #FF3B00;
  --grey: #4d4d4d;
  --line: #e2e2e2;
  --gut: clamp(16px, 3.2vw, 44px);
  --max: 1360px;
  --cols: 4;
  --rule: 10px;
  --font: "Epilogue", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 900px) {
  :root { --cols: 12; --rule: 14px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
}

/* The raw construction grid behind every page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100% - 2 * var(--gut), var(--max));
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%;
  border-right: 1px solid var(--line);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

::selection { background: var(--red); color: #000; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(2.3rem, 5.6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.g12 { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Labels and small type */
.label { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); margin: 0 0 .8em; display: flex; align-items: center; gap: .6em; }
.label::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.small { font-size: .875rem; color: var(--grey); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2em;
  min-height: 52px; padding: .75em 1.15em; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn::after { content: "→"; font-weight: 400; }
.btn:hover { background: var(--red); border-color: var(--red); color: #000; }
.btn-line { background: var(--paper); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.arrow::after { content: " →"; }
.arrow:hover { border-bottom-color: var(--red); }

/* Header */
.top { position: relative; z-index: 60; background: var(--paper); }
.top-bar { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.brand small { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .01em; margin-top: 3px; color: var(--grey); }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-weight: 600; }
.menu ul a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; }
.menu ul a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }
.menu ul a[aria-current="page"]::before { content: ""; width: 9px; height: 9px; background: var(--red); }
.menu .btn { min-height: 46px; }
.lang { display: flex; margin: 0; border: 2px solid var(--ink); }
.lang a { display: grid; place-items: center; min-width: 44px; min-height: 40px; font-size: .875rem; font-weight: 700; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.menu-btn {
  display: none; min-height: 46px; padding: 0 16px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.rule { border: 0; border-top: var(--rule) solid var(--ink); margin: 0; }

/* Axis bubbles on the grid */
.axes { position: relative; height: 46px; }
.axes span {
  position: absolute; top: 10px; left: calc(var(--i) * 100% / var(--cols)); transform: translateX(-50%);
  width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; font-size: .6875rem; font-weight: 700; line-height: 1;
}
.axes .x { display: none; }
@media (min-width: 900px) { .axes .x { display: grid; } }

@media (max-width: 1099px) {
  .menu { gap: 14px; }
  .menu ul a { padding: 0 8px; }
}
@media (max-width: 899px) {
  .top-bar { min-height: 72px; }
  .brand small { display: none; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .menu { flex-wrap: wrap; }
  .js .menu { display: none; }
  html:not(.js) .top-bar { flex-wrap: wrap; padding-bottom: 12px; }
  .js .menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 0; z-index: -1; overflow-y: auto;
    padding: 124px var(--gut) 32px; background: var(--paper);
  }
  .js .menu.open ul { flex-direction: column; align-items: stretch; gap: 0; border-top: var(--rule) solid var(--ink); }
  .js .menu.open li { border-bottom: 1px solid var(--ink); }
  .js .menu.open ul a { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; min-height: 76px; padding: 0; width: 100%; }
  .js .menu.open .btn { margin-top: 24px; font-size: 1.125rem; }
  .js .menu.open .lang { margin-top: 24px; align-self: flex-start; }
  .js .menu.open .menu-cta { justify-content: space-between; }
}
.menu-open { overflow: hidden; }

/* Sections */
.sec { padding: clamp(56px, 8vw, 112px) 0; }
.sec-tight { padding-top: 0; }
.sec-head { display: grid; gap: 16px 0; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .bubble {
  width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; max-width: 34em; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .sec-head .bubble { grid-column: 1; transform: translateX(-50%); }
  .sec-head h2 { grid-column: 2 / span 6; }
  .sec-head p { grid-column: 8 / span 5; padding-top: .4em; }
}

/* Hero */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.hero h1 { font-size: clamp(2.6rem, 6.8vw, 6.8rem); line-height: .92; letter-spacing: -.055em; margin: 0 0 clamp(24px, 3vw, 40px); max-width: 11.5em; }
.hero-grid { gap: 36px 0; border-top: var(--rule) solid var(--ink); padding-top: clamp(24px, 3vw, 40px); }
.hero-text { grid-column: 1 / -1; }
.hero-fig { grid-column: 1 / -1; margin: 0; }
@media (max-width: 899px) { .hero-fig { order: -1; } .hero-grid { gap: 28px 0; } }
.hero-meta { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--ink); }
.hero-meta li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: .9375rem; }
.hero-meta li span:first-child { font-weight: 700; }
@media (min-width: 900px) {
  .hero-text { grid-column: 1 / span 4; padding-right: 24px; }
  .hero-fig { grid-column: 5 / span 8; }
}

/* Drawing frame with crop marks */
.sheet { position: relative; padding: 14px; background: var(--paper); }
.sheet::before, .sheet::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.sheet::before { top: 0; left: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.sheet::after { right: 0; bottom: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sheet img { width: 100%; }
figcaption { font-size: .875rem; line-height: 1.5; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
figcaption b { font-weight: 800; }

/* Schedule rows (kinds of work) */
.schedule { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.schedule li { display: grid; gap: 8px 0; padding: 24px 0; border-bottom: 1px solid var(--ink); }
.schedule .no { font-size: .875rem; font-weight: 700; }
.schedule h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: -.045em; margin: 0; }
.schedule p { margin: 0; max-width: 36em; }
.schedule .arrow { justify-self: start; }
@media (min-width: 900px) {
  .schedule li { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: baseline; }
  .schedule .no { grid-column: 1; }
  .schedule h3 { grid-column: 2 / span 4; }
  .schedule p { grid-column: 6 / span 5; padding-right: 24px; }
  .schedule .arrow { grid-column: 11 / span 2; justify-self: end; }
}

/* Selected work with oversized codes */
.works { border-top: var(--rule) solid var(--ink); }
.work { display: grid; gap: 20px 0; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 2px solid var(--ink); position: relative; }
.work-code { font-size: clamp(5rem, 15vw, 13.5rem); font-weight: 900; letter-spacing: -.07em; line-height: .78; margin: 0; }
.work-code span { color: var(--red); }
.work h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.04em; margin: 0 0 .35em; }
.work h3 a { text-decoration: none; }
.work h3 a::after { content: ""; position: absolute; inset: 0; }
.work h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.work:hover .work-code { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 8px; text-underline-offset: 10px; }
.work-img { border: 1px solid var(--ink); background: var(--paper); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; border-top: 1px solid var(--ink); }
.specs div { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); }
.specs dt { font-size: .75rem; font-weight: 700; color: var(--grey); }
.specs dd { margin: 0; font-weight: 600; }
@media (min-width: 900px) {
  .work { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .work-code { grid-column: 1 / span 5; }
  .work-body { grid-column: 6 / span 3; padding-right: 24px; }
  .work-img { grid-column: 9 / span 4; }
}

/* Process as a dimension chain */
.chain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.chain li { position: relative; padding: 0 0 28px 32px; border-left: 1px solid var(--ink); }
.chain li::before {
  content: ""; position: absolute; left: -9px; top: 0; width: 18px; height: 2px; background: var(--ink); transform: rotate(-45deg);
}
.chain .dim { display: inline-block; font-weight: 800; font-size: .9375rem; margin-bottom: 8px; padding: 2px 8px; background: var(--paper); border: 1px solid var(--ink); }
.chain h3 { margin-bottom: .35em; }
.chain .fi-term { display: block; font-size: .8125rem; font-weight: 600; color: var(--grey); margin-bottom: .6em; font-style: italic; }
.chain p { font-size: .9375rem; margin: 0; }
.chain-note { font-size: .875rem; color: var(--grey); margin-top: 24px; max-width: 44em; }
@media (min-width: 900px) {
  .chain { grid-template-columns: 2fr 3fr 4fr 3fr 3fr; border-top: 1px solid var(--ink); margin-top: 40px; }
  .chain li { border-left: 0; padding: 28px 24px 0 0; }
  .chain li::before { left: -9px; top: -1px; }
  .chain li:last-child::after { content: ""; position: absolute; right: -9px; top: -1px; width: 18px; height: 2px; background: var(--ink); transform: rotate(-45deg); }
  .chain .dim { position: absolute; top: -44px; left: 0; right: 24px; margin: 0; border: 0; padding: 0; text-align: center; background: none; }
}

/* Principles */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.principles li { padding: 24px 0; border-bottom: 1px solid var(--ink); }
.principles h3 { font-size: 1.5rem; }
.principles p { margin: 0; }
@media (min-width: 900px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
  .principles li { border-bottom: 0; padding: 28px 28px 28px 0; }
  .principles li + li { border-left: 1px solid var(--ink); padding-left: 28px; }
}

/* Team initials */
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--ink); }
.team li { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 16px; background: var(--paper); }
.initials {
  display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 14px;
  border: 2px solid var(--ink); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.06em;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100%, var(--paper);
}
.team li:first-child .initials { box-shadow: inset -12px -12px 0 -2px var(--red); }
.team h3 { font-size: 1.125rem; margin: 0 0 .2em; }
.team .role { font-size: .875rem; font-weight: 600; margin: 0 0 .6em; }
.team p { font-size: .9375rem; }
.team .langs { font-size: .8125rem; color: var(--grey); margin: 0; }
.team-wide li { padding: 20px; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font-weight: 700; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.75rem; line-height: .8; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 44em; padding-bottom: 8px; }
@media (min-width: 900px) {
  .faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .faq-wrap > h2 { grid-column: 2 / span 4; }
  .faq-wrap > .faq { grid-column: 6 / span 7; }
}

/* Call to action block */
.cta { border: 2px solid var(--ink); border-top-width: var(--rule); padding: clamp(24px, 4vw, 48px); background: var(--paper); display: grid; gap: 20px; position: relative; }
.cta::after { content: ""; position: absolute; top: calc(-1 * var(--rule)); right: -2px; width: 56px; height: var(--rule); background: var(--red); }
.cta h2 { margin: 0; }
.cta p { margin: 0; max-width: 36em; }
.cta .contact-line { font-size: .9375rem; }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .cta .actions { justify-content: flex-end; margin: 0; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0; font-size: .875rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey); }
.crumbs a { font-weight: 600; }

/* Page head (inner pages) */
.page-head { padding: clamp(24px, 4vw, 48px) 0 clamp(32px, 5vw, 64px); }
.page-head h1 { max-width: 15em; margin-bottom: .45em; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.page-head .lede { margin: 0; }

/* Projects index */
.filter { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 12px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); width: fit-content; max-width: 100%; }
.filter button {
  min-height: 48px; padding: 0 18px; border: 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.filter button span { font-weight: 500; font-size: .8125rem; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter button:hover:not([aria-pressed="true"]) { background: var(--red); color: #000; }
html:not(.js) .filter, html:not(.js) .filter-status { display: none; }
.filter-status { font-size: .875rem; margin: 0 0 28px; min-height: 1.5em; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px 0; }
.card { border-top: 8px solid var(--ink); padding-top: 14px; display: grid; gap: 10px; position: relative; background: var(--paper); }
.card[hidden] { display: none; }
.card .code { font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 900; letter-spacing: -.07em; line-height: .85; margin: 10px 0 0; }
.card h2 { font-size: 1.5rem; letter-spacing: -.035em; margin: 0; }
.card h2 a { text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.card p { margin: 0; font-size: .9375rem; }
.card .meta { font-size: .8125rem; font-weight: 700; }
.card .more { font-size: .875rem; font-weight: 700; }
.card .more.off { font-weight: 500; color: var(--grey); }
.card img { border: 1px solid var(--ink); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Project page */
.proj-code { font-size: clamp(4.6rem, 17vw, 15rem); font-weight: 900; letter-spacing: -.075em; line-height: .76; margin: 0 0 24px; }
.proj-code span { color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 32px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); }
.facts dt { font-size: .75rem; font-weight: 700; color: var(--grey); }
.facts dd { margin: 0; font-weight: 600; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div + div { padding-left: 16px; }
  .facts div:nth-child(4n + 1) { padding-left: 0; }
  .facts div:not(:nth-child(4n + 1)) { border-left: 1px solid var(--ink); }
}

/* Drawing sequence */
.seq { border-top: var(--rule) solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper); }
.seq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.seq-count { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 0; }
.seq-count .of { color: var(--grey); font-weight: 500; }
.seq-title { margin: 0; font-weight: 800; font-size: 1.125rem; margin-right: auto; }
.seq-ctl { display: flex; gap: 0; }
.seq-ctl button {
  min-width: 52px; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); margin-left: -2px;
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.seq-ctl button:hover { background: var(--red); color: #000; }
.seq-ctl .seq-full { background: var(--ink); color: #fff; }
.seq-ctl .seq-full:hover { background: var(--red); color: #000; border-color: var(--red); }
html:not(.js) .seq-ctl, html:not(.js) .seq-hint, html:not(.js) .seq-tabs { display: none; }
.seq-hint { font-size: .8125rem; color: var(--grey); margin: 0; width: 100%; }
.seq-list { list-style: none; padding: 0; margin: 0; }
.seq-slide[hidden] { display: none !important; }
.seq-slide { padding: 20px 0 24px; }
html:not(.js) .seq-slide + .seq-slide { border-top: 1px solid var(--ink); }
.seq-slide figure { margin: 0; }
.seq-stage { outline-offset: -3px; }
.seq-slide img { width: 100%; max-height: 74vh; object-fit: contain; margin-inline: auto; touch-action: pan-y; }
.seq-slide figcaption { display: block; max-width: 60em; }
.seq-slide figcaption b { display: block; font-size: 1rem; margin-bottom: 2px; }
.seq-tabs { display: flex; flex-wrap: wrap; gap: 0; padding: 0 0 20px; margin: 0; list-style: none; }
.seq-tabs button {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); margin: 0 -1px -1px 0;
  background: var(--paper); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--ink);
}
.seq-tabs button[aria-current="true"] { background: var(--ink); color: #fff; }
.seq.is-full {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column;
  border: 0; padding: 0 var(--gut); overflow: hidden;
}
.seq.is-full .seq-list { flex: 1; min-height: 0; }
.seq.is-full .seq-slide { height: 100%; display: flex; flex-direction: column; padding: 12px 0; }
.seq.is-full .seq-slide figure { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.seq.is-full .seq-slide img { flex: 1; min-height: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.seq.is-full .seq-tabs { padding-bottom: 12px; }
.seq-lock { overflow: hidden; }

/* Prose sections on inner pages */
.prose-grid { display: grid; gap: 0; }
.prose-block { padding: 28px 0; border-top: 1px solid var(--ink); }
.prose-block:first-child { border-top: 2px solid var(--ink); }
.prose-block h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose-block p:last-child, .prose-block ul:last-child { margin-bottom: 0; }
.prose-block li { margin-bottom: .35em; }
@media (min-width: 900px) {
  .prose-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .prose-block > h2 { grid-column: 2 / span 4; padding-right: 24px; }
  .prose-block > div { grid-column: 6 / span 6; }
}
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--ink); }

.next-proj { display: grid; gap: 8px; text-decoration: none; padding: clamp(32px, 5vw, 64px) 0; border-bottom: 2px solid var(--ink); }
.next-proj .label { margin: 0; }
.next-proj strong { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 900; letter-spacing: -.06em; line-height: .95; }
.next-proj:hover strong { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 6px; text-underline-offset: 8px; }

/* Stages on the approach page */
.stages { list-style: none; padding: 0; margin: 0; counter-reset: st; border-top: var(--rule) solid var(--ink); }
.stages > li { display: grid; gap: 12px 0; padding: 32px 0; border-bottom: 1px solid var(--ink); }
.stages .st-no { font-size: clamp(3.6rem, 8vw, 6.5rem); font-weight: 900; letter-spacing: -.07em; line-height: .8; margin: 0; }
.stages h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 0; }
.stages .fi-term { font-style: italic; font-weight: 600; color: var(--grey); font-size: .9375rem; margin: 4px 0 0; }
.stages dl { margin: 12px 0 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.stages dl div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.stages dt { font-size: .75rem; font-weight: 700; }
.stages dd { margin: 0; font-size: .9375rem; }
@media (min-width: 900px) {
  .stages > li { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .stages .st-no { grid-column: 1 / span 2; }
  .stages .st-head { grid-column: 3 / span 3; padding-right: 24px; }
  .stages .st-body { grid-column: 6 / span 7; }
  .stages dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stages dl div { padding-right: 16px; border-bottom: 0; }
}

/* Fee table */
.fees { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 1rem; }
.fees th, .fees td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.fees th { font-weight: 600; }
.fees td { font-weight: 800; white-space: nowrap; text-align: right; padding-right: 0; }

/* Consultation form */
.form-layout { display: grid; gap: 40px 0; }
@media (min-width: 1000px) {
  .form-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .form-layout > form, .form-layout > .done { grid-column: 1 / span 7; }
  .form-layout > aside { grid-column: 9 / span 4; position: sticky; top: 24px; }
}
.form { border-top: var(--rule) solid var(--ink); padding-top: 8px; }
.form h2 { font-size: 1.5rem; margin: 28px 0 14px; display: flex; align-items: center; gap: 12px; }
.form h2 .n { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; font-size: .9375rem; flex: none; }
.field { margin: 0 0 20px; }
.field label, .field .lab, fieldset legend { display: block; font-weight: 700; margin-bottom: 6px; }
.opt-note { font-weight: 500; color: var(--grey); font-size: .875rem; }
.hint { display: block; font-size: .875rem; color: var(--grey); margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 130px; resize: vertical; }
.unit { display: flex; }
.unit input { flex: 1; }
.unit span { display: grid; place-items: center; padding: 0 16px; border: 2px solid var(--ink); border-left: 0; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.choices label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 600; cursor: pointer; }
.choices label:has(input:checked) { background: var(--ink); color: #fff; }
.choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); flex: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.grid2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.err { color: #B00020; font-size: .875rem; font-weight: 700; margin: 6px 0 0; }
.err:empty { display: none; }
.invalid input, .invalid select, .invalid textarea, .invalid .choices { border-color: #B00020; }
.invalid .choices label { border-color: #B00020; }
.form-alert { border: 2px solid #B00020; color: #B00020; padding: 12px 16px; font-weight: 700; margin: 16px 0; }
.form-alert[hidden] { display: none; }
.form .btn { margin-top: 8px; }
.done { border: 2px solid var(--ink); border-top: var(--rule) solid var(--red); padding: clamp(24px, 4vw, 40px); }
.done[hidden] { display: none; }
.done h2 { margin-top: 0; }

/* Live project sheet */
.psheet { border: 2px solid var(--ink); background: var(--paper); }
.psheet h2 { font-size: 1.125rem; margin: 0; padding: 12px 16px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.psheet h2 span { font-size: .8125rem; font-weight: 600; }
.psheet dl { margin: 0; }
.psheet dl div { display: grid; grid-template-columns: 7.5em 1fr; border-bottom: 1px solid var(--ink); }
.psheet dt { font-size: .75rem; font-weight: 700; padding: 10px 16px; border-right: 1px solid var(--ink); }
.psheet dd { margin: 0; padding: 10px 16px; font-weight: 700; font-size: .9375rem; }
.psheet dd.empty { color: var(--grey); font-weight: 500; }
.psheet .area { font-size: 2.6rem; font-weight: 900; letter-spacing: -.06em; padding: 16px; margin: 0; border-bottom: 1px solid var(--ink); line-height: 1; }
.psheet .area small { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.psheet .next { padding: 16px; margin: 0; font-size: .9375rem; }
.psheet .next ol { margin: 8px 0 0; padding-left: 1.2em; }
.contact-box { margin-top: 20px; font-size: .9375rem; }
.contact-box p { margin: 0 0 4px; }

/* 404 */
.lost { padding: clamp(32px, 6vw, 80px) 0; }
.lost .big { font-size: clamp(6rem, 24vw, 20rem); font-weight: 900; letter-spacing: -.08em; line-height: .75; margin: 0 0 24px; }
.lost .big span { color: var(--red); }
.lost-grid { display: grid; gap: 32px 0; border-top: var(--rule) solid var(--ink); padding-top: 28px; }
@media (min-width: 900px) {
  .lost-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lost-grid > div:first-child { grid-column: 1 / span 6; padding-right: 32px; }
  .lost-grid > div:last-child { grid-column: 7 / span 6; padding-left: 32px; border-left: 1px solid var(--ink); }
}
.fake-h { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 .5em; }

/* Footer */
.foot { border-top: var(--rule) solid var(--ink); margin-top: clamp(56px, 8vw, 112px); background: var(--paper); padding-bottom: 72px; }
.foot-grid { display: grid; gap: 28px 0; padding: 40px 0 32px; }
.foot-h { font-size: .8125rem; font-weight: 800; letter-spacing: .02em; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot address { font-style: normal; }
.foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 0; border-top: 1px solid var(--ink); font-size: .875rem; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot-grid > :nth-child(1) { grid-column: 1 / span 4; padding-right: 32px; }
  .foot-grid > :nth-child(2) { grid-column: 6 / span 2; }
  .foot-grid > :nth-child(3) { grid-column: 8 / span 3; }
  .foot-grid > :nth-child(4) { grid-column: 11 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.seq.is-full { width: auto; margin: 0; }
