:root {
  --black: #070908;
  --paper: #f2f2ee;
  --green: #248d2c;
  --green-bright: #35bd40;
  --muted: #9ba19b;
  --display: "Anton", "League Gothic", Impact, sans-serif;
  --body: "Open Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body { margin: 0; background: var(--black); color: white; font-family: var(--body); }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
.scroll-progress { position: fixed; z-index: 30; inset: auto 0 0; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--green-bright); transition: width .12s linear; }

/* Centered menu control expands into a floating, image-led panel. */
.site-nav { position: fixed; z-index: 20; top: 28px; left: 50%; width: min(340px, calc(100% - 32px)); transform: translateX(-50%); transition: top .42s cubic-bezier(.2,.8,.2,1), left .42s cubic-bezier(.2,.8,.2,1), width .42s cubic-bezier(.2,.8,.2,1), transform .42s cubic-bezier(.2,.8,.2,1); }
.nav-card { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 14px; background: #f7f7f4; color: #101210; border-radius: 3px; box-shadow: 0 4px 20px #0003; transition: min-height .35s ease, padding .35s ease, border-radius .35s ease; }
.nav-brand { flex: none; margin-left: 4px; color: inherit; font: 400 38px/.9 "Mrs Sheppards", cursive; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: inline-flex; flex: 1; justify-content: flex-end; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.menu-toggle-label { font: 700 10px/1 var(--body); letter-spacing: .12em; }
.menu-toggle-actions { display: inline-flex; align-items: center; gap: 11px; }
.menu-toggle-icon { position: relative; width: 17px; height: 12px; display: inline-block; }
.menu-toggle-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s, top .2s; }
.menu-toggle-icon i:first-child { top: 3px; }
.menu-toggle-icon i:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child { top: 6px; transform: rotate(-45deg); }
.mobile-menu { max-height: 0; overflow: hidden; padding: 0 14px; margin-top: 3px; background: #f0f0ed; color: #171917; border-radius: 3px; box-shadow: 0 10px 28px #0005; opacity: 0; visibility: hidden; transform: translateY(-8px) scaleY(.98); transform-origin: top left; transition: max-height .38s cubic-bezier(.2,.8,.2,1), padding .32s ease, opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .38s; }
.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { max-height: min(72vh, 620px); padding: 8px 22px 18px; opacity: 1; visibility: visible; transform: translateY(0) scaleY(1); transition-delay: 0s; }
.mobile-menu .menu-item { position: relative; display: flex; align-items: center; gap: 15px; width: 100%; min-height: 48px; padding: 8px 24px 8px 0; border: 0; border-bottom: 1px solid #c9cbc7; background: transparent; color: #222522; text-align: left; text-decoration: none; font-size: 20px; font-weight: 500; cursor: pointer; }
.mobile-menu .menu-item > img { display: none; }
.mobile-menu .menu-item:hover { color: var(--green); }
.menu-pdf-row { display: flex; align-items: center; border-bottom: 1px solid #c9cbc7; }
.menu-pdf-row .menu-item-main { flex: 1; width: auto; padding-right: 10px; border: 0; gap: 6px; }
.menu-file-type { margin-left: -2px; padding: 1px 4px; border: 1px solid #bfc4bc; border-radius: 2px; color: #70766e; font-size: 8px; font-weight: 700; line-height: 1.2; letter-spacing: .08em; }
.menu-download-button { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-right: 2px; border: 0; border-radius: 3px; background: transparent; color: #222522; transition: color .18s ease, transform .18s ease; }
.menu-download-button:hover { background: transparent; color: var(--green); transform: translateY(-1px); }
.menu-download-button img { position: absolute; width: 21px; height: 21px; transition: opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1); }
.menu-download-button .download-done-icon { opacity: 0; transform: scale(.55) rotate(-18deg); }
.menu-download-button.is-downloaded .download-icon { opacity: 0; transform: translateY(-6px) scale(.65); }
.menu-download-button.is-downloaded .download-done-icon { opacity: 1; transform: scale(1) rotate(0); }
.menu-socials { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 0; border-top: 0; }
.menu-socials a { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 0; color: #5f655e; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.menu-socials a:hover { background: transparent; color: var(--green); transform: translateY(-1px); }
.menu-socials svg { width: 17px; height: 17px; fill: currentColor; }
.menu-socials svg.instagram-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-socials svg.instagram-icon .instagram-dot { fill: currentColor; stroke: none; }
body::before { position: fixed; z-index: 12; inset: 0; content: ""; background: rgba(5, 7, 5, .28); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
body.menu-open::before { opacity: 1; }
body.menu-open .nav-card { min-height: 56px; padding: 0 14px; }
body.menu-open .menu-toggle { width: auto; min-height: 56px; justify-content: flex-end; padding: 0 2px; }
body.menu-open .menu-toggle-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .menu-open .mobile-menu { max-height: min(72vh, 620px); }

/* Full-screen project carousel. */
.work-carousel { position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; background: var(--black); }
.project-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility .65s; }
.project-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.025); transition: transform 7s ease; }
.project-slide.is-active .slide-image { transform: scale(1); }
.project-slide[data-slide="0"] .slide-image { object-position: 68% center; }
.project-slide[data-slide="1"] .slide-image { object-position: center 53%; }
.project-slide[data-slide="2"] .slide-image { object-position: center 50%; }
.project-slide[data-slide="3"] .slide-image { object-position: 62% center; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,4,.88) 0%, rgba(3,5,4,.66) 27%, rgba(3,5,4,.20) 68%, rgba(3,5,4,.18) 100%), linear-gradient(0deg, rgba(3,5,4,.48), transparent 40%); }
.slide-copy { position: absolute; z-index: 2; left: clamp(28px, 5vw, 88px); bottom: clamp(125px, 17vh, 190px); max-width: 72vw; }
.slide-copy h1, .slide-copy h2 { margin: 0; color: #f5f6f3; font: 400 clamp(78px, 13.2vw, 220px)/.78 var(--display); letter-spacing: -.018em; text-transform: uppercase; text-shadow: 0 3px 34px #0004; }
.slide-copy h1 span, .slide-copy h2 span { color: var(--green-bright); }
.project-slide[data-slide="0"] .slide-copy h1 { color: #777c74; text-shadow: 0 1px 14px #fff2; }
.project-slide[data-slide="0"] .slide-copy h1 span { color: inherit; }
.project-slide[data-slide="1"] .slide-copy h2,
.project-slide[data-slide="1"] .slide-copy h2 span { color: #fff; }
.project-slide[data-slide="2"] .slide-copy { left: clamp(170px, 40vw, 600px); bottom: clamp(180px, 22vh, 250px); max-width: 52vw; }
.project-slide[data-slide="2"] .slide-copy h2 { color: #b77b4a; }
.project-slide[data-slide="2"] .slide-copy h2 span { color: inherit; }
.project-slide[data-slide="3"] .slide-copy { bottom: clamp(200px, 23vh, 270px); }
.project-slide[data-slide="3"] .slide-copy h2 { color: #df4d43; }
.project-slide[data-slide="3"] .slide-copy h2 span { color: inherit; }
.project-slide[data-slide="1"] .slide-copy { bottom: clamp(480px, 68vh, 740px); }

.cursor-arrow { position: absolute; z-index: 7; width: clamp(66px, 9vw, 128px); height: clamp(66px, 9vw, 128px); display: grid; place-items: center; color: var(--green-bright); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.92); transition: opacity .14s ease, transform .14s ease; }
.cursor-arrow.is-visible { opacity: .9; transform: translate(-50%, -50%) scale(1); }
.cursor-arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .7; stroke-linecap: square; stroke-linejoin: miter; }
.cursor-arrow.is-left svg { transform: rotate(180deg); }
.work-carousel { cursor: none; }
.carousel-bottom { position: absolute; z-index: 6; left: 0; right: 0; bottom: 25px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(28px, 3vw, 55px); pointer-events: none; }
.carousel-bottom > * { pointer-events: auto; }
.carousel-dots { display: flex; align-items: center; gap: 13px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: 1px solid var(--green-bright); border-radius: 50%; background: transparent; cursor: pointer; transition: width .2s, border-radius .2s, background .2s; }
.carousel-dot.is-active { width: 24px; border-radius: 8px; background: var(--green-bright); }
.carousel-dot:hover { background: #35bd4077; }
.carousel-arrow:focus-visible, .carousel-dot:focus-visible, .menu-toggle:focus-visible, a:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 4px; }

.contact-dialog { position: fixed; inset: 50% auto auto 50%; width: min(560px, calc(100% - 36px)); max-height: min(82svh, 680px); overflow-y: auto; transform: translate(-50%, -50%); padding: clamp(30px, 6vw, 58px); border: 0; border-radius: 3px; background: var(--paper); color: #121512; box-shadow: 0 18px 80px #0008; }
.contact-dialog::backdrop { background: #050705b8; backdrop-filter: blur(4px); }
.contact-dialog:not([open]) { display: none; }
.contact-close { position: absolute; top: 12px; right: 15px; width: 34px; height: 34px; border: 0; background: transparent; color: #222; font-size: 28px; font-weight: 300; cursor: pointer; }
.section-index { margin: 0 0 22px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.contact-dialog h2 { margin: 0 0 26px; font: 400 clamp(48px, 8vw, 78px)/.9 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.contact-dialog p:not(.section-index) { color: #4b504b; font-size: 14px; line-height: 1.8; }
.contact-dialog strong { color: #141814; }
.contact-dialog .contact-role { margin-top: 0; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-dialog > a { display: block; width: fit-content; margin: 12px 0; color: #171b17; font-size: 16px; font-weight: 600; text-decoration-color: var(--green); text-underline-offset: 4px; }
.contact-card-socials { display: flex; gap: 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #c9cec7; }
.contact-card-socials a { display: inline-flex; align-items: center; gap: 7px; color: #171b17; font-size: 12px; font-weight: 700; text-decoration: none; }
.contact-card-socials svg { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 700px) {
  .site-nav { top: 14px; }
  .nav-card { min-height: 48px; padding: 0 11px; }
  .nav-brand { font-size: 35px; }
  body.menu-open .site-nav { top: 14px; }
  body.menu-open .nav-card { min-height: 52px; }
  body.menu-open .menu-toggle { min-height: 52px; }
  .menu-open .mobile-menu { padding: 8px 18px 16px; }
  .work-carousel { min-height: 0; height: 100vh; height: 100dvh; }
  .slide-image { object-position: 58% center; }
  .project-slide[data-slide="0"] .slide-image { object-position: 69% center; }
  .project-slide[data-slide="2"] .slide-image { object-position: 55% center; }
  .slide-shade { background: linear-gradient(90deg, rgba(3,5,4,.79), rgba(3,5,4,.26)), linear-gradient(0deg, rgba(3,5,4,.68), transparent 72%); }
  .slide-copy { left: clamp(20px, 6vw, 30px); bottom: clamp(205px, 26dvh, 260px); max-width: calc(100% - 40px); }
  .slide-copy h1, .slide-copy h2 { max-width: 100%; font-size: clamp(46px, 12.5vw, 76px); line-height: .9; letter-spacing: -.025em; }
  .project-slide[data-slide="1"] .slide-copy { bottom: clamp(290px, 44dvh, 420px); }
  .project-slide[data-slide="3"] .slide-copy { bottom: clamp(220px, 28dvh, 285px); }
  .project-slide[data-slide="2"] .slide-copy { left: clamp(20px, 31vw, 140px); bottom: clamp(205px, 26dvh, 260px); max-width: calc(100% - clamp(20px, 31vw, 140px) - 20px); }
  .cursor-arrow { display: none; }
  .work-carousel { cursor: auto; }
  .carousel-bottom { bottom: 16px; padding: 0 15px; }
  .carousel-dots { gap: 9px; }
  .carousel-dot { width: 7px; height: 7px; }
  .carousel-dot.is-active { width: 20px; }
}

@media (pointer: coarse) {
  .work-carousel { cursor: auto; }
  .cursor-arrow { display: none; }
}

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