@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("assets/fonts/pixelify-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root { --ink: #0d171c; --mineral: #193640; --sand: #e8ddcd; --orange: #f69b48; --paper: #faf5ed; --accent: #f29a56; color-scheme: dark; font-family: "Instrument Sans", sans-serif; scroll-behavior: smooth; scrollbar-color: var(--orange) var(--ink); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font-size: 18px; line-height: 1.55; }
::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
svg { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { font-weight: 500; line-height: 1.03; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.7rem, 4.1vw, 4.5rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.7rem); }
section { scroll-margin-top: 24px; }
.skip-link { position: fixed; top: 16px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: absolute; z-index: 5; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 4%; gap: 24px; }
.wordmark { font-size: 31px; letter-spacing: .01em; font-weight: 600; text-decoration: none; line-height: 1; padding-block: 6px; }
.desktop-nav { display: flex; gap: clamp(24px, 3.2vw, 52px); }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; letter-spacing: .035em; }
.desktop-nav a:hover { text-decoration: underline; }
.mobile-nav { display: none; }
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 700px; height: min(910px, 88svh); padding: 140px 4% 48px; background: #080d10; }
.hero-scene { position: absolute; z-index: -2; inset: 0; background: url("assets/plates/cinematic-architecture-v2.png") center center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0911153b, transparent 67%), linear-gradient(0deg, #071015b3, transparent 46%), linear-gradient(180deg, #07101594, transparent 17%); }
.hero-reading-plane { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; }
.hero-copy { flex: 1; max-width: 760px; }
h1 { font-size: clamp(3.8rem, 5.65vw, 5.4rem); }
.hero-copy > p { font-size: clamp(1.15rem, 1.65vw, 1.5rem); line-height: 1.3; margin-top: 23px; margin-bottom: 24px; color: #f1e9de; }
.project-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 25px; min-height: 52px; border-radius: 50px; background: var(--orange); color: #13191b; text-decoration: none; font-size: 17px; }
.project-link:hover { background: #ffb576; }
.hero-proof { min-width: 288px; padding-left: 28px; margin-bottom: 0; border-left: 1px solid #f1e9de99; }
.hero-proof > p { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; line-height: 1.4; margin: 0 0 8px; }
.hero-proof a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; border-bottom: 1px solid #f1e9de99; text-decoration: none; font-size: 18px; }
.hero-proof a:hover { color: #ffc18d; }
.chapter { padding: clamp(50px, 6vw, 100px) 4%; }
.chapter-opening { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 64px; }
.chapter-opening > p { flex: 0 1 340px; margin: 0; }
.services { color: var(--ink); background: var(--sand); color-scheme: light; }
.services .chapter-opening { padding-top: 0; }
.service-layers { display: grid; grid-template-columns: 1fr 1fr; }
.service-layers article { padding: 38px 10% 42px 0; border-top: 1px solid #19364055; }
.service-layers article:nth-child(even) { padding-left: 10%; padding-right: 0; border-left: 1px solid #19364055; }
.layer-number { display: block; margin-bottom: 24px; font-size: 13px; letter-spacing: .05em; }
.service-layers h3 { margin-bottom: 20px; }
.service-layers p { max-width: 48ch; margin-bottom: 0; color: #33464d; }
.work { background: var(--mineral); }
.work .chapter-opening { margin-bottom: 54px; }
.work-row { display: grid; grid-template-columns: 1fr 2.4fr 40px; align-items: start; gap: 40px; padding: 42px 0; border-top: 1px solid #bdcecf66; text-decoration: none; }
.work-row:last-child { border-bottom: 1px solid #bdcecf66; }
.work-type { font-size: 15px; color: #d6e3df; }
.work-row h3 { margin-bottom: 18px; }
.work-row p { max-width: 58ch; margin-bottom: 0; color: #d6e3df; }
.work-row:hover h3 { text-decoration: underline; text-underline-offset: .14em; }
.work-row > svg { color: var(--orange); margin-top: 5px; }
.process { background: var(--ink); }
.process .chapter-opening > p { color: #d3dfde; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style-position: inside; padding: 0; margin: 0; }
.process-steps li { padding-top: 22px; border-top: 1px solid #b9cac955; }
.process-steps li::marker { color: var(--orange); font-variant-numeric: tabular-nums; }
.process-steps h3 { margin: 22px 0 16px; font-size: 27px; }
.process-steps p { color: #d3dfde; font-size: 17px; margin: 0; }
.about { background: var(--sand); color: var(--ink); color-scheme: light; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 9%; }
.about h2 { margin-bottom: 30px; }
.about p { max-width: 57ch; color: #33464d; }
.portrait { margin: 0; padding: 20px; max-width: 430px; background: #faf5ed; border: 1px solid #19364055; border-radius: 4px 38% 4px 4px; transform: rotate(2deg); }
.portrait canvas { display: block; width: 100%; aspect-ratio: 1; image-rendering: pixelated; cursor: pointer; }
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 14px 6px 2px; font: 500 14px/1.3 "Pixelify Sans", monospace; }
.questions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 9%; background: var(--paper); color: var(--ink); color-scheme: light; }
.faq-list details { border-top: 1px solid #19364055; padding: 22px 0; }
.faq-list details:last-child { border-bottom: 1px solid #19364055; }
.faq-list summary { font-size: 21px; padding: 7px 0; }
.faq-list summary::marker { color: #6d3d14; }
.faq-list details p { margin: 18px 0 0; max-width: 64ch; color: #33464d; }
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10%; background: var(--orange); color: var(--ink); color-scheme: light; }
.contact h2 { font-size: clamp(3rem, 5.5vw, 5.4rem); }
.contact-detail > p { max-width: 45ch; }
.email-link { display: flex; align-items: center; gap: 20px; padding: 8px 0; font-size: clamp(1.1rem, 1.75vw, 1.65rem); }
#copy-email { margin: 16px 0 12px; border: 1px solid var(--ink); background: transparent; min-height: 44px; padding: 8px 16px; border-radius: 4px; }
#copy-email:hover { background: #0d171c; color: #faf5ed; }
#copy-status { display: block; font-size: 16px; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4%; font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
/* Keep the original viewport pet and its play controls above the page artwork. */
body.pyxel-active { padding-bottom: 160px; }
.pyxel-roam { position: fixed; left: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 30; pointer-events: none; color: var(--paper); opacity: 0; transition: opacity .4s ease; }
.pyxel-roam.on { opacity: 1; }
.pyxel-play { position: fixed; left: 0; bottom: 0; z-index: 29; width: 100%; height: 160px; border-top: 1px solid #bdcecf66; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.pyxel-play.on { opacity: 1; pointer-events: auto; }
.pyxel-play p { position: absolute; left: 4%; bottom: 15px; margin: 0; color: #d3dfde; font-size: 13px; }
.pyxel-ball { position: fixed; z-index: 31; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; }
.pyxel-ball:active { cursor: grabbing; }
.pyxel-ball[hidden] { display: none; }
.pyxel-toggle { position: absolute; right: 16px; bottom: 12px; z-index: 32; min-height: 44px; font: 500 13px/1 "Pixelify Sans", monospace; color: var(--paper); background: var(--mineral); border: 1px solid #bdcecf66; border-radius: 50px; padding: 9px 14px; }
.pyxel-toggle:hover { border-color: var(--orange); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-scene { animation: layer-reveal linear both; animation-timeline: scroll(); animation-range: 0 90vh; }
    @keyframes layer-reveal { from { clip-path: inset(0); } to { clip-path: inset(0 0 7% 0); } }
  }
}
@media (max-width: 1000px) {
  h1 { font-size: clamp(3.5rem, 5.6vw, 4.7rem); }
  .hero-reading-plane { gap: 30px; }
  .hero-proof { min-width: 255px; padding-left: 20px; }
  .hero-proof a { font-size: 16px; }
  .chapter-opening { gap: 32px; }
  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 760px) {
  .site-header { padding: 18px 6%; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: 74px; right: 6%; display: grid; width: 230px; padding: 12px 22px; background: var(--ink); border: 1px solid #bdcecf66; }
  .mobile-nav nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
  .mobile-nav nav a:hover { text-decoration: underline; }
  .hero { height: auto; min-height: 850px; min-height: max(850px, 96svh); padding: 330px 6% 38px; }
  .hero-scene { background-size: auto 72%; background-position: 58% top; }
  .hero::before { background: linear-gradient(0deg, #080d10 20%, #080d10c9 49%, transparent 77%); }
  .hero-reading-plane { flex-direction: column; align-items: stretch; gap: 34px; }
  h1 { font-size: clamp(2.8rem, 8.2vw, 4rem); }
  .hero-copy > p { font-size: 20px; max-width: 33ch; margin-top: 20px; }
  .desktop-break { display: none; }
  .hero-proof { width: 100%; min-width: 0; max-width: 440px; padding-left: 18px; }
  .hero-proof a { font-size: 18px; min-height: 48px; }
  .chapter { padding: 50px 6%; }
  h2 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
  .chapter-opening { display: block; margin-bottom: 38px; }
  .chapter-opening > p { max-width: 48ch; margin-top: 24px; }
  .service-layers { grid-template-columns: 1fr; }
  .service-layers article, .service-layers article:nth-child(even) { padding: 30px 0; border-left: 0; }
  .service-layers h3 { font-size: 32px; }
  .work-row { grid-template-columns: 1fr 32px; gap: 18px; padding: 32px 0; }
  .work-type { grid-column: 1 / -1; }
  .work-row > svg { width: 32px; height: 32px; }
  .work-row h3 { font-size: 30px; }
  .about, .questions, .contact { grid-template-columns: 1fr; gap: 38px; }
  .portrait { width: min(100%, 360px); justify-self: center; }
  .contact h2 { font-size: clamp(3rem, 10vw, 4.5rem); }
  .email-link { font-size: 20px; gap: 12px; }
  footer { display: block; padding: 24px 6%; }
  footer nav { margin-top: 12px; }
}
@media (max-width: 640px) {
  body.pyxel-active { padding-bottom: 120px; }
  .pyxel-play { height: 120px; }
  .pyxel-play p { left: 16px; bottom: 64px; max-width: 45%; line-height: 1.3; }
  .pyxel-toggle { right: 12px; bottom: 12px; }
}
@media (max-width: 420px) {
  .hero { padding-top: 300px; }
  .project-link { width: 100%; padding-inline: 20px; gap: 12px; font-size: 16px; }
  .process-steps { grid-template-columns: 1fr; }
  .portrait figcaption { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .hero-scene { animation: none; clip-path: none; }
  .pyxel-roam, .pyxel-play { transition: none; }
}
