.engineering #content {
  --paper: #edeeeb;
  --silver: #e8edea;
  --mint: #bde0d2;
  --muted: #aec2ba;
  --dark: #0b1415;
  --edge: clamp(1.25rem, 5vw, 6rem);
  background: var(--dark);
  color: var(--silver);
}
.engineering #content :is(h1,h2,h3) { font-weight: 700; text-wrap: balance; }
.engineering #content em { font-style: normal; color: var(--mint); }
.engineering .skip { position: fixed; z-index: 8; top: .5rem; left: .5rem; padding: .75rem; background: var(--paper); color: var(--dark); transform: translateY(-140%); }
.engineering .skip:focus { transform: none; }
.c-header { 
  position: absolute; z-index: 2; top: 0; width: 100%; padding: clamp(1rem, 3.4vw, 2.25rem) var(--edge);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.c-brand, .c-header nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.7rem); }
.c-brand { gap: .7rem; white-space: nowrap; font-weight: 700; }
.c-brand img { mix-blend-mode: screen; }
.c-header nav a { display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; font-size: .91rem; }
.c-header nav a:hover { color: var(--mint); }
.c-nav-contact { border-bottom: 1px solid #bde0d26c; }
.c-spatial { position: relative; display: grid; isolation: isolate; }
.c-stage, .c-sequence { grid-area: 1 / 1; min-width: 0; }
.c-stage {
  position: sticky; z-index: -1; top: 0; align-self: start; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 68% 82% at 79% 49%, hsl(var(--stage-tone, 172) 24% 22%), transparent 71%),
    linear-gradient(113deg, #0b1415 32%, #131d21 85%, #0b1415);
}
.c-stage-grid {
  position: absolute; inset: 6% 3% 0 24%; opacity: .29;
  background: linear-gradient(90deg, #bddec638 1px, transparent 1px), linear-gradient(#bddec638 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 52% 60% at 64% 51%, #000, transparent);
}
.c-stage::after {
  position: absolute; content: ""; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 59% 39% at 6% 48%, #0b1415 14%, #0b1415ad 46%, transparent 94%);
}
.c-canvas { position: absolute; top: 4%; bottom: 1%; right: 0; width: 64%; }
.c-canvas canvas, .c-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-canvas canvas[hidden] { display: none; }
.c-poster { object-fit: contain; pointer-events: none; }
.c-poster-open { opacity: 0; }
.c-stage[data-scene="webgl"] .c-poster { visibility: hidden; }
.c-stage[data-scene="poster"]:is([data-beat="open"],[data-beat="design"],[data-beat="care"],[data-beat="seo"]) .c-poster-open { opacity: 1; }
.c-stage[data-scene="poster"]:is([data-beat="open"],[data-beat="design"],[data-beat="care"],[data-beat="seo"]) .c-poster-assembled { opacity: 0; }
.c-beat { position: relative; display: grid; align-items: center; padding-inline: var(--edge); min-height: 71svh; scroll-margin-top: .1rem; }
.c-hero { min-height: max(45rem,100svh); align-items: start; align-content: center; padding-block: 7.5rem 5rem; }
.c-hero-content { position: relative; z-index: 1; }
.c-discipline { color: var(--mint); font-size: clamp(.86rem,1.1vw,1.05rem); margin-bottom: clamp(1rem,2.8vh,1.65rem); letter-spacing: .04em; }
.c-hero h1 { font-size: clamp(3.4rem,7.6vw,8.2rem); line-height: .88; letter-spacing: -.086em; max-width: 12ch; text-wrap: initial; }
.c-hero h1 em { color: #d8eadf; }
.c-lead { margin-block: clamp(1.1rem,3vh,2rem) 1.45rem; font-size: clamp(1rem, 1.47vw, 1.32rem); line-height: 1.43; max-width: 32ch; color: var(--muted); }
.c-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: clamp(.8rem,3vw,2.6rem);
  background: var(--mint); color: #0d201a; padding: .82rem 1rem; min-height: 48px; font-size: .93rem; font-weight: 700;
}
.c-button:hover { background: #dbf2e8; }
.c-next { position: absolute; bottom: 1.55rem; left: var(--edge); color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: .7rem; min-height: 44px; }
.c-next span { border: 1px solid #cadcd37a; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; }
.c-next:hover, .c-line-link:hover, .c-layer-nav a:hover { color: var(--mint); }
.c-beat-copy { width: min(41vw, 32rem); padding-block: 2.5rem; }
.c-beat-copy :is(h2,h3) { font-size: clamp(2.4rem,6.2vw,7rem); line-height: .88; letter-spacing: -.088em; text-wrap: initial; }
.c-beat-copy h3 { font-size: clamp(2.4rem,5.1vw,5.8rem); }
.c-beat-copy p { margin-block: 1.15rem .9rem; font-size: clamp(1rem,1.4vw,1.16rem); max-width: 32ch; line-height: 1.45; color: var(--muted); }
.c-layer-nav { display: grid; width: min(100%,21rem); margin-top: 1.15rem; }
.c-layer-nav a { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #c4d8cc4a; min-height: 44px; }
.c-layer-nav a:last-child { border-bottom: 1px solid #c4d8cc4a; }
.c-layer-nav span { color: var(--mint); }
.c-service { border-block-start: 1px solid #a3c2bc22; }
.c-service .c-price { color: var(--mint); font-weight: 700; margin-block: 1.25rem .4rem; }
.c-price small { display: block; margin-top: .2rem; font-size: .78em; font-weight: 400; }
.c-line-link { display: inline-flex; min-height: 44px; align-items: center; gap: .85rem; border-bottom: 1px solid currentColor; font-size: .91rem; }
.c-join { min-height: 64svh; background: linear-gradient(180deg, transparent 67%, #152421); }
.c-offer .c-tax { margin-top: .8rem; font-size: .79rem; }
.c-portfolio { position: relative; isolation: isolate; color: #10201b; background: #dde6dd; }
.c-portfolio-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  background: #152421; color: var(--silver);
  padding: 1.5rem var(--edge) 3.8rem;
}
.c-portfolio-head h2 { font-size: clamp(3.1rem,10vw,10rem); line-height: .86; letter-spacing: -.095em; }
.c-case {
  --case-pad: var(--edge);
  position: relative; display: grid; isolation: isolate; padding: var(--case-pad);
  overflow: clip;
}
.c-case-copy { position: relative; z-index: 2; align-self: start; }
.c-case h3 { font-size: clamp(2.65rem,6.7vw,7rem); line-height: .84; letter-spacing: -.09em; text-wrap: initial; }
.c-case p { max-width: 28ch; font-size: clamp(.93rem,1.45vw,1.14rem); line-height: 1.42; margin-block: .95rem .35rem; }
.c-case .c-line-link:hover { color: inherit; opacity: .74; }
.c-case-media { position: relative; min-width: 0; }
.c-case-media img { box-shadow: 0 1.4rem 3.5rem #10201832; width: 100%; object-fit: cover; object-position: top; }
.c-bim { min-height: min(57rem,79vw); grid-template-columns: .7fr 1.3fr; align-items: center; background: linear-gradient(180deg,#152421 0,transparent clamp(1.5rem,4vw,4rem)),linear-gradient(117deg,#d5decf,#edf0de 72%,#c4d1bb); }
.c-bim .c-case-copy { align-self: start; margin-top: clamp(.15rem,3vw,3rem); padding-right: clamp(1rem,6vw,6rem); }
.c-bim .c-case-media { width: 111%; margin-left: -11%; align-self: end; padding-bottom: 2.5rem; }
.c-bim .c-case-primary { aspect-ratio: 1.57; }
.c-bim .c-case-detail { position: relative; width: 61%; margin: -12% 0 0 -17%; aspect-ratio: 1.8; outline: 1px solid #e7e7d4; }
.c-sapphira {
  background: linear-gradient(180deg,#dce5d5,transparent clamp(1.2rem,4vw,4rem)),radial-gradient(ellipse at 58% 70%,#f3ccbd,#e4afa1 63%,#ca9287);
  grid-template-columns: 1.37fr .63fr; align-items: center; column-gap: clamp(1.2rem,4vw,4rem); min-height: min(55rem, 75vw);
}
.c-sapphira .c-case-copy { grid-column: 2; align-self: center; }
.c-sapphira .c-case-media { grid-column: 1; grid-row: 1; padding-block: .9rem 2rem; }
.c-sapphira .c-case-primary { width: 87%; aspect-ratio: 1.37; }
.c-sapphira .c-case-detail { width: 34%; position: relative; margin: -33% 0 0 auto; border: .35rem solid #261918; border-radius: .75rem; aspect-ratio: .52; }
.c-yuffa { min-height: min(55rem,78vw); background: linear-gradient(180deg,#dca89c,transparent clamp(1.2rem,3vw,3rem)),linear-gradient(113deg,#18242c,#263940 74%); color: #e8efefe8; }
.c-yuffa .c-case-copy { display: grid; grid-template-columns: 1.35fr 1fr auto; align-items: end; gap: 1rem; padding-bottom: 2.25rem; }
.c-yuffa .c-case-copy p { margin-block: 0; }
.c-yuffa .c-case-media { width: 92%; justify-self: end; align-self: end; padding: .7rem 0 0; }
.c-yuffa .c-case-primary { width: 84%; margin-left: auto; aspect-ratio: 1.95; box-shadow: none; }
.c-yuffa .c-case-detail { position: relative; width: 27%; margin-top: -29%; aspect-ratio: .64; outline: 1px solid #d1dede4d; }
.c-polacus {
  background: linear-gradient(180deg,#23343c,transparent clamp(1.2rem,3vw,3rem)),radial-gradient(ellipse at 65% 25%, #382c32, #1a1b25 62%,#0e151c);
  color: #f4e6ca; min-height: min(62rem,81vw);
  grid-template-columns: .75fr 1.25fr; align-items: end;
}
.c-polacus .c-case-copy { align-self: start; }
.c-polacus .c-case-media { width: 115%; margin-left: -15%; display: grid; align-items: end; grid-template-columns: 1fr 1fr; }
.c-polacus .c-case-object { grid-area: 1 / 1 / 2 / 3; width: 91%; margin: 0 -7% 0 auto; aspect-ratio: 1.47; mask-image: radial-gradient(ellipse at 50% 45%, #000 45%, transparent 79%); }
.c-polacus .c-case-primary { position: relative; z-index: 1; margin-top: -22%; width: 130%; max-width: none; aspect-ratio: 1.45; align-self: start; }
.c-polacus .c-case-detail { position: relative; z-index: 1; width: 53%; justify-self: end; margin-top: -39%; aspect-ratio: .60; }
.c-contact {
  padding: clamp(3.3rem,9vw,8rem) var(--edge); min-height: min(38rem,75vh);
  display: grid; grid-template-columns: 1fr .5fr; align-items: center; overflow: clip;
  background: #bde0d2; color: #10251d;
}
.c-contact h2 { font-size: clamp(3.1rem,8.3vw,8rem); line-height: .85; letter-spacing: -.093em; max-width: 12ch; }
.c-contact p { font-size: clamp(1rem,1.6vw,1.21rem); margin-block: 1.35rem; }
.c-contact .c-button { background: #142d25; color: #f0f7f3; }
.c-contact .c-button:hover { background: #304d3f; }
.c-contact img { width: 105%; max-width: none; margin-left: 1rem; opacity: .9; }
.c-footer { color: var(--muted); }
@media(max-width:850px) {
  .c-stage-grid { background-size: 46px 46px; }
  .c-hero h1 { font-size: clamp(3.4rem,8.4vw,5.6rem); }
  .c-beat-copy { width: min(47vw,22rem); }
  .c-case { margin-inline: 0; }
  .c-yuffa .c-case-copy { grid-template-columns: 1fr 1fr; }
  .c-yuffa .c-case-copy a { grid-column: 2; justify-self: start; }
}
@media(max-width:640px) {
  .c-header { flex-wrap: wrap; gap: .24rem; padding-block: .75rem; }
  .c-header nav { width: 100%; justify-content: space-between; }
  .c-header nav a { font-size: .83rem; }
  .c-stage { height: min(51svh,25rem); background: radial-gradient(ellipse 66% 79% at 51% 55%, hsl(var(--stage-tone,172) 24% 23%), transparent 85%), #0e191b; }
  .c-stage::after { position: absolute; content: ""; inset: 62% 0 0; background: linear-gradient(transparent,#0d1719); }
  .c-stage-grid { inset: 0; mask-image: radial-gradient(ellipse at center,#000,transparent 67%); }
  .c-canvas { width: 100%; top: 0; bottom: .4rem; }
  .c-poster-open { transform: translateY(-14%) scale(.77); }
  .c-hero { min-height: max(41rem,89svh); padding-block: 8.5rem 4.65rem; align-content: end; }
  .c-hero::before { position: absolute; content: ""; inset: 0; z-index: 0; background: linear-gradient(180deg,#0d1719 2%,#0d171900 18%,#0d171900 47%,#0d1719 59%); pointer-events: none; }
  .c-hero h1 { font-size: clamp(2.85rem,11vw,4.4rem); max-width: none; }
  .c-discipline { margin-bottom: .85rem; }
  .c-lead { font-size: .96rem; margin-block: .85rem 1.05rem; }
  .c-next { bottom: .65rem; }
  .c-beat:not(.c-hero) { min-height: max(31rem,65svh); align-items: end; }
  .c-beat.c-offer { min-height: max(33.5rem,69svh); }
  .c-beat-copy { width: auto; margin-inline: calc(var(--edge) * -1); padding: 1.8rem var(--edge) 1.7rem; background: linear-gradient(transparent,#0d1719 21%); }
  .c-beat-copy :is(h2,h3) { font-size: clamp(2.7rem,11.5vw,4.8rem); }
  .c-beat-copy p { font-size: .95rem; margin-block: .8rem .65rem; }
  .c-join { background: linear-gradient(180deg, transparent 64%,#152421); }
  .c-join .c-beat-copy { background: linear-gradient(transparent,#152421 7%); }
  .c-portfolio-head { padding-bottom: 1.85rem; }
  .c-case { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; padding-block: 2.35rem; }
  .c-case .c-case-copy { display: block; grid-row: 1; grid-column: 1; margin: 0; padding: 0; }
  .c-case .c-case-media { grid-row: 2; grid-column: 1; width: 100%; margin: 0; padding: 0; }
  .c-yuffa .c-case-copy p { margin-block: .95rem .35rem; }
  .c-bim .c-case-primary { width: 96%; margin-left: auto; aspect-ratio: 1.45; }
  .c-bim .c-case-detail { width: 70%; margin: -9% 0 0; aspect-ratio: 1.6; }
  .c-sapphira .c-case-primary { width: 94%; }
  .c-sapphira .c-case-detail { width: 38%; }
  .c-yuffa .c-case-primary { aspect-ratio: 1.25; }
  .c-yuffa .c-case-detail { width: 39%; }
  .c-polacus .c-case-object { width: 100%; margin: 0; }
  .c-polacus .c-case-primary { width: 136%; }
  .c-polacus .c-case-detail { width: 52%; }
  .c-contact { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 1.5rem; }
  .c-contact img { width: 72%; margin: -1rem 0 -1.6rem auto; }
}
@supports (animation-timeline: view()) {
  @media(prefers-reduced-motion:no-preference) {
    .c-case-media { view-timeline-name: --case; }
    .c-case-primary, .c-case-detail, .c-case-object {
      animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: --case;
      animation-range: entry 0% cover 42%;
    }
    .c-bim .c-case-primary { animation-name: c-spread; }
    .c-bim .c-case-detail { animation-range: entry 15% cover 46%; }
    .c-bim .c-case-detail, .c-yuffa .c-case-detail { animation-name: c-float-left; }
    .c-sapphira .c-case-primary, .c-yuffa .c-case-primary { animation-name: c-reveal; }
    .c-sapphira .c-case-detail, .c-polacus .c-case-detail { animation-name: c-float-right; }
    .c-polacus .c-case-object { animation-name: c-shift-object; }
    .c-polacus .c-case-primary { animation-name: c-spread; }
    @keyframes c-spread { from { clip-path: inset(4% 18% 12% 0); transform: translateX(8%) scale(.89); } to { clip-path: inset(0); transform: none; } }
    @keyframes c-reveal { from { clip-path: inset(0 0 22% 21%); transform: translateX(-5%); } to { clip-path: inset(0); transform: none; } }
    @keyframes c-float-left { from { transform: translate(20%,25%) scale(.84); } to { transform: none; } }
    @keyframes c-float-right { from { transform: translate(-25%,24%) scale(.85); } to { transform: none; } }
    @keyframes c-shift-object { from { transform: translate(9%,-4%) scale(1.15); } to { transform: none; } }
  }
}
@media(prefers-reduced-motion:reduce) {
  :root:not([data-preview-motion]) .c-stage { position: relative; }
  :root:not([data-preview-motion]) .c-spatial .c-beat:not(.c-hero) { min-height: 0; padding-block: .5rem; }
  :root:not([data-preview-motion]) :is(.c-offer,.c-service) { background: #101b1c; }
  :root:not([data-preview-motion]) .c-join { background: #152421; }
  :root:not([data-preview-motion]) .c-stage[data-scene="poster"] .c-poster-assembled { opacity: 1 !important; }
  :root:not([data-preview-motion]) .c-stage[data-scene="poster"] .c-poster-open { opacity: 0 !important; }
}
