@font-face {
  font-family: Manrope;
  src: url('manrope-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  src: url('manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --paper: #f8f7f3;
  --soft: #efede6;
  --ink: #232422;
  --muted: #575952;
  --dark: #252622;
  --accent: #ff6b3d;
  --accent-dark: #a83a19;
  --line: #d9d7ce;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 Manrope, system-ui, sans-serif; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
a { color: inherit; text-underline-offset: .24em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2869ce; outline-offset: 4px; }
.dark :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #ffd3aa; }
.wrap { width: min(var(--wrap), calc(100% - 100px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; transform: translateY(-200%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.section { padding-block: clamp(3.65rem, 6.1vw, 6.5rem); }
.soft { background: var(--soft); }
.dark { background: var(--dark); color: var(--paper); }

.top { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; flex: 0 0 auto; }
.wordmark img { object-fit: contain; }
.wordmark .brand-dark, .footer .wordmark .brand-light { display: none; }
.footer .wordmark .brand-dark { display: block; }
.wordmark strong, .wordmark small { display: block; line-height: 1; }
.wordmark strong { font-size: 1.88rem; letter-spacing: -.08em; font-weight: 800; }
.wordmark small { margin-top: 6px; font-size: .72rem; letter-spacing: .13em; font-weight: 800; }
.mark { width: 40px; height: 38px; display: flex; align-items: flex-end; gap: 3px; padding: 5px 3px; transform: skew(-17deg); }
.mark i { width: 9px; background: var(--accent); }
.mark i:nth-child(1) { height: 13px; }
.mark i:nth-child(2) { height: 21px; }
.mark i:nth-child(3) { height: 28px; }
.nav { align-self: stretch; display: flex; align-items: stretch; gap: clamp(1rem, 2.15vw, 2.3rem); }
.nav a { display: flex; align-items: center; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; padding-top: 2px; font-size: .91rem; font-weight: 750; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-color: var(--accent); }
.nav-toggle { display: none; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.3rem; border: 1px solid transparent; border-radius: 4px; background: var(--accent); color: #21170f; font-size: .92rem; font-weight: 800; line-height: 1.35; text-decoration: none; text-align: center; }
.button:hover { background: #ff825d; }
.button-ghost { background: #272722a8; border-color: #ffffff7d; color: white; }
.button-ghost:hover { background: #f8f7f3; color: var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #3c3f36; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(32rem, 49vw, 40rem); background: #272722; color: white; overflow: hidden; }
.hero-image { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: 58% 54%; mask-image: linear-gradient(90deg, transparent, black 25%); }
.hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #25251f 9%, #25251ffd 22%, #25251fdf 38%, #26262058 68%, #2626200d 100%); }
.hero-inner { padding-block: 4.75rem; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: .72rem; color: var(--accent-dark); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .86rem; }
.kicker::before { content: ''; display: inline-block; width: 22px; height: 2px; background: currentColor; }
.hero .kicker, .dark .kicker, .page-hero .kicker { color: #ff9c78; }
.hero h1 { max-width: 860px; }
.hero .hero-text { max-width: 490px; margin: 1.35rem 0 1.85rem; color: #edeae2; font-size: clamp(1rem, 2vw, 1.14rem); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; margin-bottom: 2rem; }
.text-link, .back-link { padding-bottom: 4px; border-bottom: 1px solid currentColor; text-decoration: none; font-weight: 800; font-size: .94rem; flex-shrink: 0; }
.text-link:hover, .back-link:hover { color: var(--accent-dark); }
.dark .text-link:hover, .page-hero .back-link:hover { color: #ff9c78; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.1vw, 1.7rem); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); background: #fffefa; min-width: 0; }
.card a { display: flex; height: 100%; flex-direction: column; text-decoration: none; transition: background .18s ease; }
.card a:hover { background: var(--soft); }
.card img, .card-placeholder { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #dbd8cf; }
.card-body { padding: 1.27rem 1.35rem 1.4rem; }
.card-body p { margin-top: .55rem; color: var(--muted); }
.card-body .card-meta { margin: 0 0 .42rem; font-weight: 800; color: var(--accent-dark); font-size: .86rem; }
.dark .card { border-color: #53554c; background: #30312c; }
.dark .card a:hover { background: #3b3c34; }
.dark .card-body p { color: #dfddd2; }
.dark .card-body .card-meta { color: #ffac91; }
.status { display: inline-block; width: fit-content; margin-top: .75rem; border: 1px solid var(--line); border-radius: 3px; padding: .13rem .52rem; color: var(--muted); font-size: .86rem; font-weight: 800; }
.dark .status { border-color: #77786c; color: #f0ede2; }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.process p { max-width: 38ch; margin-top: .8rem; color: var(--muted); }
.process dl > div { border-top: 1px solid var(--line); padding: 1rem 0; }
.process dl > div:last-child { border-bottom: 1px solid var(--line); }
.process dt { font-size: 1.15rem; font-weight: 800; }
.process dd { margin: .25rem 0 0; color: var(--muted); }

.page-hero { padding-block: clamp(3rem, 6vw, 5.75rem); background: var(--dark); color: var(--paper); }
.page-hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.1rem); }
.page-hero h1 + p { margin-top: 1rem; color: #dfddd2; max-width: 60ch; }
.back-link { display: inline-block; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.9rem; }
.filters a { border: 1px solid var(--line); border-radius: 4px; padding: .44rem .92rem; text-decoration: none; font-weight: 800; }
.filters a:hover, .filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.detail-image { width: 100%; max-height: 31rem; aspect-ratio: 16 / 8; object-fit: cover; }
.detail-content, .about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); }
.detail-image + .detail-content { margin-top: 2rem; }
.prose { max-width: 70ch; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.7rem, 4vw, 2.75rem); }
.project-facts { border-top: 1px solid var(--line); }
.project-facts > div { padding: .63rem 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-weight: 800; }
.project-facts dd { margin-left: 0; }
.about { grid-template-columns: 1fr 1fr; align-items: center; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 5rem); }
.contact h2, .form h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.contact p { margin-top: .65rem; }
.demo-note { border-left: 3px solid var(--accent); padding: .6rem 0 .6rem .9rem; color: var(--muted); }
.form { background: #fffefa; border: 1px solid var(--line); display: grid; gap: 1.05rem; padding: clamp(1rem, 3vw, 2rem); align-content: start; }
.form button { justify-self: start; }
.form fieldset { display: grid; gap: 1.05rem; padding: 0; margin: 0; border: 0; min-width: 0; }
.form fieldset:disabled :is(input,select,textarea,button) { opacity: .7; cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; min-width: 0; gap: .35rem; font-weight: 800; font-size: .94rem; }
input, textarea, select { min-width: 0; width: 100%; border: 1px solid #b9b9af; border-radius: 3px; padding: .58rem .7rem; background: #fff; color: var(--ink); font-weight: 500; font-size: 1rem; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #514d47 50%), linear-gradient(135deg, #514d47 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback { margin: 0; padding: .7rem 1rem; border-left: 3px solid; }
ul.feedback { padding-left: 2rem; }
.success { background: #e7f3e7; color: #18441f; }
.error { background: #f9ece8; color: #7f251e; }

.contact-band { padding-block: 2.35rem; background: var(--accent); }
.contact-band .section-heading { margin: 0 auto; align-items: center; }
.contact-band h2 { font-size: clamp(1.8rem, 4.1vw, 3.1rem); }
.footer { background: #20211d; color: var(--paper); }
.footer-main { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer nav a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid #53544a; padding-block: .95rem; color: #d7d5ca; font-size: .88rem; }
.demo-strip { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .35rem 1.25rem; padding: .65rem 1rem; background: #082b59; color: #fff; font-size: .9rem; text-align: center; }
.demo-strip a { font-weight: 800; }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { min-height: 74px; gap: .85rem; }
  .nav { gap: .88rem; }
  .nav a, .header-quote { font-size: .88rem; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; padding-block: .78rem; }
  .nav-toggle { display: inline-flex; gap: .5rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 4px; padding: .48rem .7rem; font-weight: 800; }
  .nav-toggle:not([data-ready]), .nav-toggle[data-ready][aria-expanded='false'] + .nav { display: none; }
  .nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .95rem; }
  .nav a { min-height: 42px; }
  .header-quote { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image { width: 100%; object-position: 61% center; mask-image: none; }
  .hero::before { background: linear-gradient(90deg, #25251ff5 0%, #25251fc9 43%, #2626204d 100%); }
  .footer-main { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .hero { min-height: 0; align-items: flex-end; }
  .hero-inner { padding-block: 8rem 2.75rem; }
  .hero-image { width: 100%; object-position: 66% center; }
  .hero::before { background: linear-gradient(0deg, #25251fff 0%, #25251fe8 32%, #25251fb8 63%, #26262022 100%); }
  .hero h1 { font-size: clamp(2.35rem, 10.7vw, 3.6rem); }
  .hero .hero-text { margin-block: .8rem 1.35rem; }
  .actions { gap: .6rem; }
  .button { padding-inline: .85rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .72rem; margin-bottom: 1.3rem; }
  .cards, .cards.two, .process, .detail-content, .about, .contact, .form-row { grid-template-columns: 1fr; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .contact-band .section-heading { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
