/* Uber Vision — site styles */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }
:root {
  --plaster: #f2f3f0;
  --paper: #ffffff;
  --walnut: #3a2310;
  --ink: #26180b;
  --stone: #6f665c;
  --line: #dcd9d2;
  --cyan: #00b4e0;
  --cyan-ink: #00779a;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--cyan-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.btn { display: inline-block; background: var(--walnut); color: #fff; text-decoration: none; border: 1px solid var(--walnut); padding: .85rem 1.6rem; font-weight: 500; font-size: .98rem; letter-spacing: .01em; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-small { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem var(--pad); color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.topbar.is-solid { background: rgba(242,243,240,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.brand .logo-dark, .topbar.is-solid .logo-light { display: none; }
.topbar.is-solid .logo-dark { display: block; }
.topbar::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(180deg, rgba(30,18,8,.55), rgba(30,18,8,0)); transition: opacity .3s; pointer-events: none; }
.topbar.is-solid::before { opacity: 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; opacity: .8; margin-top: .3rem; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: inherit; text-decoration: none; font-size: .98rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }
.topbar:not(.is-solid) .nav .btn { background: transparent; border-color: rgba(255,255,255,.75); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .25s; }
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: 100vh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--walnut); }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade { background: linear-gradient(90deg, rgba(30,18,8,.72) 0%, rgba(30,18,8,.35) 45%, rgba(30,18,8,0) 75%), linear-gradient(0deg, rgba(30,18,8,.55) 0%, rgba(30,18,8,0) 40%); }
.hero-copy { position: relative; padding: 0 var(--pad) clamp(6rem, 14vh, 9rem); max-width: 60rem; }
.hero h1 { font-size: clamp(3.1rem, 9vw, 7.8rem); line-height: .98; margin-bottom: 1.4rem; }
.hero-copy p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-actions .btn:first-child { background: #fff; color: var(--ink); border-color: #fff; }
.hero-actions .btn:first-child:hover { background: var(--plaster); }
.hero-meta { position: absolute; right: calc(var(--pad) + 4.5rem); bottom: 2rem; display: flex; align-items: center; gap: 1.5rem; font-size: .92rem; }
.hero-caption { margin: 0; padding-left: .9rem; border-left: 2px solid var(--cyan); }
.hero-controls { display: flex; align-items: center; gap: .5rem; }
.hero-controls button { background: none; border: 1px solid rgba(255,255,255,.5); width: 38px; height: 38px; font-size: 1.3rem; line-height: 1; }
.hero-controls button:hover { background: rgba(255,255,255,.15); }
.hero-count { min-width: 3.4rem; text-align: center; }

/* ---------- sections ---------- */
main > section { padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }
.section-head { max-width: var(--max); margin: 0 auto 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: end; }
.section-head p { color: var(--stone); max-width: 36rem; margin: 0; }

/* work */
.filters { max-width: var(--max); margin: -1rem auto 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.filters button { background: none; border: 1px solid var(--line); padding: .45rem 1.1rem; font-size: .95rem; }
.filters button.is-on { background: var(--walnut); color: #fff; border-color: var(--walnut); }
.projects { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3rem 1.5rem; }
.project { grid-column: span 2; }
.project:nth-child(5n+1), .project:nth-child(5n+2) { grid-column: span 3; }
.project[hidden] { display: none; }
.project-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.project-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.project:nth-child(5n+1) .project-img, .project:nth-child(5n+2) .project-img { aspect-ratio: 3 / 2; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-open:hover .project-img img { transform: scale(1.03); }
.project-text { display: block; padding-top: 1rem; }
.project-title { display: block; font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--stone); font-size: .95rem; margin-top: .25rem; }

/* process */
.process { background: var(--walnut); color: #f4efe8; }
.process .section-head p { color: rgba(244,239,232,.75); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.6rem; height: 2px; background: var(--cyan); box-shadow: 0 0 14px rgba(0,180,224,.55); }
.steps li { position: relative; padding-top: 4rem; }
.step-no { position: absolute; top: 0; left: 0; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; background: var(--walnut); border: 2px solid var(--cyan); border-radius: 50%; font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.steps h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.steps p { color: rgba(244,239,232,.75); font-size: .98rem; margin: 0; }

/* about */
.about { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-images { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); }
.about-images img { grid-row: 1; object-fit: cover; aspect-ratio: 2 / 3; width: 100%; }
.about-images img:first-child { grid-column: 1 / 9; }
.about-images img:nth-child(2) { grid-column: 7 / 13; margin-top: 35%; border: 8px solid var(--plaster); }
.about-images img:only-child { grid-column: 1 / 13; aspect-ratio: 4 / 5; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { max-width: 38rem; }

/* videos */
.videos { background: var(--paper); }
.video-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 2rem; }
.video { margin: 0; }
.video video, .video .yt, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
.video video { object-fit: contain; }
.yt { position: relative; padding: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); }
.yt .play::after { content: ""; position: absolute; left: 27px; top: 21px; border: 13px solid transparent; border-left: 20px solid var(--walnut); border-right: 0; }
.video figcaption { margin-top: .8rem; font-size: 1rem; }

/* testimonials */
.quotes { max-width: var(--max); margin: 0 auto; columns: 3 320px; column-gap: 2rem; }
.quote { break-inside: avoid; margin: 0 0 2rem; padding: 2rem 0 0; border-top: 2px solid var(--walnut); }
.quote-text p { font-size: 1.02rem; }
.quote-text p:first-child::before { content: "“"; display: block; font-family: var(--serif); font-size: 3.2rem; line-height: .6; color: var(--cyan); margin-bottom: .6rem; }
.quote footer { margin-top: 1rem; }
.quote footer b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.quote footer span { color: var(--stone); font-size: .93rem; }

/* contact */
.contact { background: var(--paper); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.contact > * { max-width: 40rem; }
.contact-info { justify-self: end; width: 100%; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--stone); }
.contact dl { margin: 2.2rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; }
.contact dt { color: var(--stone); font-size: .95rem; }
.contact dd { margin: 0; }
.contact dd a { color: var(--ink); text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.enquiry { display: grid; gap: 1.2rem; align-content: start; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { font-size: .95rem; font-weight: 500; }
.field label span { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--plaster); border: 1px solid transparent; border-bottom-color: var(--stone); padding: .75rem .9rem; border-radius: 0; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; }
.field .invalid { border-color: #b3261e; }
.enquiry .btn { justify-self: start; }
.form-status { min-height: 1.6em; margin: 0; font-weight: 500; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.85) contrast(1.05); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 3.5rem var(--pad) 2rem; display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand p { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: #fff; line-height: 1.2; }
.footer-brand span { font-family: var(--sans); font-size: .85rem; color: rgba(255,255,255,.65); }
.site-footer nav, .footer-social { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); }
.copy { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: rgba(255,255,255,.55); }

.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20,12,5,.96); display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 1rem; padding: 4rem 0 1.5rem; height: 100vh; height: 100dvh; grid-template-rows: 1fr auto; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; font-size: .95rem; }
.lb-title { font-family: var(--serif); font-size: 1.15rem; }
.lb-cap:empty { display: none; }
.lb-cap { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.3); }
.lb-count { color: rgba(255,255,255,.6); }
.lightbox button { background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; height: 100%; }
.lightbox button:hover { color: var(--cyan); }
.lb-close { position: absolute; top: .8rem; right: 1.2rem; height: auto !important; font-size: 2.4rem !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 40rem; margin-left: 0; }
  .steps::before { left: 1.5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li { padding: 0 0 2.4rem 5rem; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(5n+1), .project:nth-child(5n+2) { grid-column: span 1; }
  .project .project-img, .project:nth-child(5n+1) .project-img, .project:nth-child(5n+2) .project-img { aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--plaster); color: var(--ink); flex-direction: column; justify-content: center; gap: 1.6rem; font-size: 1.3rem; transform: translateY(-100%); visibility: hidden; transition: transform .35s, visibility .35s; }
  .nav a { font-size: 1.3rem; }
  .nav.is-open { transform: none; visibility: visible; }
  .topbar:has(.nav.is-open) { color: var(--ink); }
  .topbar:has(.nav.is-open) .logo-light { display: none; }
  .topbar:has(.nav.is-open) .logo-dark { display: block; }
  .topbar .nav .btn { background: var(--walnut) !important; border-color: var(--walnut) !important; color: #fff; }
  .section-head, .about, .contact { grid-template-columns: 1fr; }
  .contact-info { justify-self: start; }
  .hero-meta { left: var(--pad); right: calc(var(--pad) + 3.8rem); justify-content: space-between; bottom: 1.2rem; }
  .hero-copy { padding-bottom: 6.5rem; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
  .hero-caption { font-size: .85rem; }
  .lightbox { grid-template-columns: 2.6rem 1fr 2.6rem; }
  .wa-float { width: 50px; height: 50px; }
}
