:root {
  --ink: #171917;
  --soft-ink: #5d625d;
  --paper: #f3f1eb;
  --white: #fff;
  --line: rgba(23, 25, 23, .16);
  --accent: #d85c28;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 34px; color: white; transition: background .35s, color .35s, padding .35s; }
.site-header.scrolled { padding-top: 13px; padding-bottom: 13px; background: rgba(243, 241, 235, .92); color: var(--ink); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { position: relative; display: inline-flex; align-items: center; width: 166px; height: 50px; }
.brand-logo { width: 166px; height: auto; object-fit: contain; }
.brand-logo-light { position: absolute; inset: 0; opacity: 0; }
.brand-logo-dark, .brand-logo-light { transition: opacity .35s; }
.site-header.scrolled .brand-logo-dark { opacity: 0; }
.site-header.scrolled .brand-logo-light { opacity: 1; }
.footer-brand { width: 198px; height: auto; }
.footer-brand .brand-logo { width: 198px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ''; position: absolute; height: 1px; left: 0; right: 100%; bottom: -5px; background: currentColor; transition: right .25s; }
.site-nav a:hover::after { right: 0; }
.nav-cta { padding: 11px 16px; border: 1px solid currentColor; }
.menu-toggle { display: none; border: 0; background: transparent; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

.hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #222; color: white; }
.hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; animation: heroIn 1.4s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 6, .66) 0%, rgba(5, 8, 6, .17) 62%, rgba(5, 8, 6, .08) 100%), linear-gradient(0deg, rgba(4, 7, 5, .48), transparent 50%); }
.hero-content { position: relative; z-index: 2; width: min(940px, 84vw); padding: 0 0 10vh 7vw; }
.hero h1 { margin: 13px 0 20px; font-family: var(--serif); font-size: clamp(4rem, 8.7vw, 9rem); font-weight: 400; line-height: .86; letter-spacing: -.055em; }
.hero-content > p:not(.eyebrow) { max-width: 590px; margin: 0 0 32px; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow.light, .text-link.light { color: white; }
.actions { display: flex; align-items: center; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 20px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: .25s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: white; color: var(--ink); border-color: white; }
.button-accent { background: var(--accent); border-color: var(--accent); color: white; }
.text-link { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue { position: absolute; z-index: 3; right: 32px; bottom: 30px; display: flex; gap: 13px; align-items: center; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; }

.section { position: relative; padding: 120px 7vw; }
.section-index { position: absolute; top: 128px; left: 2vw; font-size: 10px; letter-spacing: .1em; }
.intro { display: grid; grid-template-columns: 1.3fr .85fr; gap: 10vw; }
.intro h2, .section-heading h2, .contact h2, .film-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.8rem, 5.6vw, 6rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.intro-body { align-self: end; max-width: 570px; color: var(--soft-ink); font-size: 1.05rem; }
.intro-body p { margin: 0 0 22px; }

.work { background: #171917; color: white; }
.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 8vw; align-items: end; margin-bottom: 64px; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--soft-ink); }
.work .section-heading > p { color: rgba(255,255,255,.64); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.project { min-height: 66vh; overflow: hidden; background: #222; }
.project-wide { grid-column: 1 / -1; min-height: 84vh; }
.project-open { position: relative; display: block; width: 100%; height: 100%; min-height: inherit; padding: 0; border: 0; background: none; overflow: hidden; cursor: pointer; text-align: left; color: white; }
.project-open > img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.project-open::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.project-open:hover > img { transform: scale(1.025); filter: saturate(.92); }
.project-meta { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.project-meta b { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 3.3rem); font-weight: 400; line-height: 1; }
.project-meta small { flex: none; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.services .section-heading { margin-left: 15%; }
.service-list { margin-left: 15%; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 70px .85fr 1fr; gap: 40px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-row span { font-size: 10px; letter-spacing: .1em; color: var(--soft-ink); }
.service-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3.4rem); font-weight: 400; line-height: 1; }
.service-row p { margin: 0; max-width: 540px; color: var(--soft-ink); }

.film-section { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: white; overflow: hidden; background: #111; }
.film-section video { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.film-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.07)), linear-gradient(0deg, rgba(0,0,0,.48), transparent 55%); }
.film-copy { position: relative; z-index: 2; max-width: 770px; padding: 0 7vw 9vh; }
.film-copy > p:not(.eyebrow) { max-width: 530px; }

.compare { --position: 50%; position: relative; aspect-ratio: var(--compare-ratio, 4/3); overflow: hidden; background: #ddd; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; }
.compare-after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.compare-after img { width: 100%; max-width: none; }
.compare input { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.compare-line { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--position); width: 2px; background: white; pointer-events: none; }
.compare-line::after { content: '↔'; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: white; color: var(--ink); transform: translate(-50%,-50%); }
.compare-label { position: absolute; z-index: 4; bottom: 20px; padding: 8px 11px; background: rgba(0,0,0,.66); color: white; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.before-label { right: 20px; }
.after-label { left: 20px; }

.extras { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.extra-card { position: relative; min-height: 70vh; overflow: hidden; background: #171917; color: white; }
.extra-card > img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: .67; transition: transform .7s; }
.extra-card:hover > img { transform: scale(1.025); }
.extra-card > div { position: absolute; z-index: 2; left: 36px; right: 36px; bottom: 34px; }
.extra-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 4.5rem); font-weight: 400; line-height: .95; }
.extra-card p:last-child { max-width: 470px; }
.light-card { background: #dedbd2; color: var(--ink); }
.light-card > img { opacity: .9; object-fit: contain; padding: 40px; }
.light-card::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(243,241,235,.92)); }

.process { background: #e6e2d9; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-grid article { min-height: 270px; padding: 24px 24px 10px 0; border-right: 1px solid var(--line); }
.process-grid article:not(:first-child) { padding-left: 24px; }
.process-grid article:last-child { border-right: 0; }
.process-grid span { font-size: 10px; color: var(--soft-ink); }
.process-grid h3 { margin: 48px 0 12px; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.process-grid p { color: var(--soft-ink); }

.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10vw; background: #171917; color: white; }
.contact-copy > p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.64); font-size: 1.05rem; }
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 7px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); border-radius: 0; outline: 0; background: transparent; color: white; font-size: 16px; text-transform: none; letter-spacing: normal; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: white; }
.contact-form .button { justify-self: start; margin-top: 10px; }
.form-status { min-height: 24px; margin: 0; color: rgba(255,255,255,.68); font-size: 13px; }

.footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding: 58px 7vw 32px; background: #0e100e; color: white; }
.footer p { margin: 0; color: rgba(255,255,255,.6); }
.footer nav { display: grid; justify-content: start; gap: 6px; }
.copyright { grid-column: 1 / -1; padding-top: 36px; margin-top: 20px !important; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }

.project-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 90px 7vw; border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
.project-dialog::backdrop { background: rgba(0,0,0,.55); }
.dialog-close { position: fixed; z-index: 3; top: 20px; right: 28px; padding: 10px; border: 0; background: var(--paper); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dialog-head { display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 8vw; margin: 0 0 60px; }
.dialog-head .eyebrow { grid-column: 1 / -1; }
.dialog-title { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 8rem); font-weight: 400; line-height: .88; letter-spacing: -.05em; }
.dialog-description { align-self: end; max-width: 500px; color: var(--soft-ink); font-size: 1.1rem; }
.dialog-gallery { display: grid; gap: 8px; }
.dialog-gallery img { max-height: 90vh; object-fit: cover; background: #ddd; }
.dialog-compare-item { margin: 0 0 54px; }
.dialog-compare-item figcaption { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dialog-compare-item .compare { width: 100%; }
.dialog-compare-item .compare-after img { width: 100%; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes heroIn { from { opacity: .2; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .site-header { padding: 17px 20px; }
  .menu-toggle { display: block; color: inherit; }
  .site-nav { position: fixed; inset: 64px 12px auto; display: none; padding: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 40px rgba(0,0,0,.18); }
  .site-nav.open { display: grid; gap: 20px; }
  .nav-cta { justify-self: start; }
  .hero-content { padding: 0 24px 11vh; width: 100%; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 6.5rem); }
  .scroll-cue { display: none; }
  .section { padding: 85px 24px; }
  .section-index { display: none; }
  .intro, .section-heading, .contact { grid-template-columns: 1fr; gap: 34px; }
  .project { min-height: 52vh; grid-column: 1 / -1; }
  .project-wide { min-height: 62vh; }
  .project-meta { display: grid; }
  .services .section-heading, .service-list { margin-left: 0; }
  .service-row { grid-template-columns: 36px 1fr; gap: 18px; }
  .service-row p { grid-column: 2; }
  .extras { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  .extra-card { min-height: 62vh; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(3), .process-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dialog-head { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .actions { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 40px; }
  .service-row { grid-template-columns: 28px 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
  .project-dialog { padding: 80px 20px 30px; }
  .dialog-compare-item .compare-after img { width: calc(100vw - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.dialog-gallery .dialog-film { display: block; width: 100%; height: auto; max-height: 80vh; background: #171717; }

.technical { padding-top: 40px; }
.technical-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.technical-card { position:relative; min-height:580px; overflow:hidden; background:#222; color:white; }
.technical-card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.technical-card > div { position:absolute; z-index:1; bottom:36px; left:36px; right:36px; }
.technical-card h3 { font-family:var(--serif); font-size:clamp(2rem,4vw,4rem); line-height:1; margin:0 0 16px; font-weight:400; }
.plan-card { background:#e6e2d9; color:var(--ink); }
.plan-card > img { object-fit:contain; opacity:1; padding:24px 24px 150px; }
.plan-card > div { background:linear-gradient(transparent,#e6e2d9 20%); padding-top:36px; }
.technical-card .project-open { position:static; width:auto; height:auto; min-height:0; padding:16px 24px; color:white; background:var(--accent); }
.technical-card .project-open::after { display:none; }
.plan-figure { margin:0; background:#f4f2ef; }
.plan-figure img { width:100%; height:auto; max-height:none; object-fit:contain; background:white; }
.plan-figure figcaption { padding:16px 20px; color:#373b35; font-size:14px; }
.tour-dialog { width:min(1200px,96vw); max-width:none; padding:24px; border:0; background:#f3f1eb; color:#252925; max-height:95dvh; overflow:auto; }
.tour-dialog::backdrop { background:rgba(0,0,0,.8); }
.tour-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.tour-heading h2 { font-size:clamp(24px,4vw,44px); margin:0 0 20px; }
#tour-stage { position:relative; height:min(58vh,650px); background:#171917; }
#tour-stage:fullscreen { height:100vh; width:100vw; }
#tour-canvas { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
#tour-canvas:active { cursor:grabbing; }
#tour-status { position:absolute; bottom:16px; left:16px; right:16px; background:rgba(0,0,0,.75); color:white; padding:10px; pointer-events:none; }
.tour-controls { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:16px; }
.tour-controls .button { padding:12px 16px; background:#e2dfd6; color:#252925; border:1px solid #c8c5bc; }
.tour-controls [aria-pressed=true] { background:#252925; color:white; }
.tour-hint { font-size:13px; margin:16px 0 0; }
@media(max-width:700px) { .technical-grid { grid-template-columns:1fr; } .technical-card { min-height:480px; } .technical-card > div { left:24px; right:24px; bottom:24px; } .tour-dialog { padding:14px; } #tour-stage { height:52dvh; } }

.dialog-gallery .compare img { max-height:none; object-fit:contain; }

.showreel-dialog { width:min(1200px,96vw); max-width:none; max-height:95dvh; overflow:auto; padding:24px; border:0; background:var(--paper); color:var(--ink); }
.showreel-dialog::backdrop { background:rgba(0,0,0,.85); }
.showreel-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.showreel-heading h2 { font-family:var(--serif); font-size:clamp(20px,3vw,36px); margin:0; font-weight:400; }
#full-showreel { width:100%; max-height:76dvh; aspect-ratio:16/9; object-fit:contain; background:#000; }
.film-copy .video-toggle { border:0; background:none; padding:12px; cursor:pointer; }
@media(max-width:600px) { .showreel-dialog { padding:14px; } .showreel-heading { align-items:flex-start; } }

.dialog-film-item { margin:20px 0; }
.dialog-film-item figcaption { margin:0 0 12px; font-size:14px; color:var(--soft-ink); }
.dialog-gallery > img { height:auto; max-height:none; object-fit:contain; }

.contact-email { color: white; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.footer p a { color: inherit; overflow-wrap: anywhere; }

.dialog-gallery img[role="button"] { cursor: zoom-in; }
.dialog-gallery img[role="button"]:focus-visible { outline: 3px solid #a88755; outline-offset: -3px; }
.image-viewer { width:100vw; max-width:none; height:100dvh; max-height:none; padding:0; border:0; margin:0; background:#111; color:#fff; }
.image-viewer[open] { display:flex; flex-direction:column; }
.image-viewer::backdrop { background:#111; }
.image-viewer-toolbar,.image-viewer-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; flex-shrink:0; }
.image-viewer-caption { margin:0; font-size:13px; }
.image-viewer-toolbar > div { display:flex; gap:8px; flex-shrink:0; }
.image-viewer button,.comparison-enlarge { padding:10px 14px; border:1px solid #777; border-radius:3px; background:transparent; color:inherit; cursor:pointer; }
.image-viewer button:disabled { opacity:.35; cursor:default; }
.image-viewer-stage { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:12px; cursor:grab; }
.image-viewer-stage img { display:block; max-width:none; margin:auto; object-fit:contain; }
.image-viewer-bottom span { font-size:12px; color:#bbb; }
.comparison-enlarge-controls { display:flex; gap:10px; padding:10px 0; }
@media(max-width:600px) { .image-viewer-toolbar {flex-wrap:wrap;padding:10px;} .image-viewer-caption {width:100%;} .image-viewer-toolbar > div {width:100%;justify-content:flex-end;} .image-viewer-bottom {padding:10px;} .image-viewer-bottom span {display:none;} }

.image-viewer-stage { touch-action:none; }

/* Compact image viewer controls */
.image-viewer-toolbar { padding:14px 18px; }
.image-viewer-toolbar > div { gap:6px; }
.image-viewer button { width:40px; height:40px; padding:0; display:inline-grid; place-items:center; border:1px solid rgba(255,255,255,.16); border-radius:50%; background:rgba(255,255,255,.06); font-size:22px; line-height:1; transition:background .15s; }
.image-viewer button:hover {background:rgba(255,255,255,.16);}
.image-viewer button:focus-visible {outline:2px solid white;outline-offset:3px;}
.image-viewer-bottom {padding:12px 18px;}
.image-viewer-bottom button {font-size:30px;}
.image-viewer-caption {color:#c9c9c9;font-size:12px;}
@media(max-width:600px) {
  .image-viewer-toolbar {flex-wrap:nowrap;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));}
  .image-viewer-caption {width:auto;flex:1;min-width:0;font-size:11px;line-height:1.5;}
  .image-viewer-toolbar > div {width:auto;gap:5px;}
  .image-viewer button {width:34px;height:34px;font-size:20px;}
  .image-viewer-bottom {padding:10px 16px;padding-bottom:max(10px,env(safe-area-inset-bottom));}
  .image-viewer-bottom span {display:block;font-size:10px;text-align:center;}
}

.contact-whatsapp { display:inline-flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:8px; padding:14px 20px; border:1px solid rgba(255,255,255,.3); border-radius:4px; color:white; text-decoration:none; font-size:14px; transition:background .2s,border-color .2s; }
.contact-whatsapp span {color:rgba(255,255,255,.7);}
.contact-whatsapp:hover {background:rgba(255,255,255,.08);border-color:white;}
.contact-whatsapp:focus-visible {outline:2px solid white;outline-offset:4px;}
