:root {
  --ink: #11110f;
  --paper: #eeeae2;
  --paper-light: #f8f6f1;
  --bronze: #a57a54;
  --bronze-light: #d4b491;
  --line: rgba(17,17,15,.16);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Didact Gothic", Arial, sans-serif;
  --shell: min(1320px, calc(100vw - 96px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper-light); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; background: white; padding: 12px 18px; }
.skip-link:focus { top: 20px; }
.eyebrow { margin: 0 0 18px; color: var(--bronze-light); font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow.dark { color: #815e40; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: clamp(38px, 4.5vw, 66px); line-height: .98; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; height: 82px; padding: 0 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: white; border-bottom: 1px solid rgba(255,255,255,.18); transition: .25s; }
.site-header.is-scrolled { height: 72px; background: rgba(17,17,15,.96); backdrop-filter: blur(14px); }
.brand { width: 155px; }
.brand img { height: auto; }
.main-nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.main-nav a { opacity: .78; }
.main-nav a:hover, .main-nav a[aria-current="page"] { opacity: 1; }
.header-call { justify-self: end; padding: 10px 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 100px; font-size: 12px; font-weight: 600; }
.menu-toggle { display: none; justify-self: end; background: none; border: 0; color: white; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 6px; background: currentColor; }

.project-hero { min-height: 100svh; position: relative; display: flex; align-items: end; color: white; overflow: hidden; }
.project-hero-media, .project-hero-shade { position: absolute; inset: 0; }
.project-hero-media { background-position: center; background-size: cover; }
.project-hero-shade { background: linear-gradient(0deg, rgba(7,7,6,.9), rgba(7,7,6,.08) 72%), linear-gradient(90deg, rgba(7,7,6,.48), transparent 58%); }
.project-hero-content { position: relative; z-index: 1; padding: 170px 0 54px; display: grid; grid-template-columns: 1fr minmax(280px, 390px); column-gap: 8vw; align-items: end; }
.back-link { grid-column: 1 / -1; display: inline-block; justify-self: start; margin-bottom: 11vh; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.project-hero-content > .eyebrow { grid-column: 1 / -1; }
.project-hero h1 { grid-column: 1; max-width: 920px; margin: 0; font-size: clamp(66px, 9.5vw, 138px); line-height: .8; }
.project-hero-summary { grid-column: 2; margin: 0 0 2px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.78); font-family: var(--display); font-size: 22px; line-height: 1.32; }
.project-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.28); margin-top: 54px; }
.project-facts div { padding: 20px 18px 0 0; }
.project-facts span { display: block; margin-bottom: 5px; color: rgba(255,255,255,.5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project-facts strong { font-size: 12px; font-weight: 500; }

.project-intro { position: relative; padding: 165px 0 180px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 13vw; }
.project-intro::before { content: "PROJECT / GEMISTOS"; position: absolute; top: 168px; right: calc(100% + 24px); writing-mode: vertical-rl; color: #8b847a; font-size: 9px; letter-spacing: .24em; }
.project-intro h2 { max-width: 760px; margin: 0; }
.project-intro h2::first-line { font-style: italic; }
.project-intro-copy { padding-top: 84px; }
.project-intro-copy .lead { color: var(--ink); font-family: var(--display); font-size: 27px; line-height: 1.35; }
.project-intro-copy p { color: #69645c; font-size: 13px; }

.feature-image { width: min(1480px, calc(100vw - 48px)); margin: 0 auto 160px; }
.feature-image img { height: min(72vw, 900px); object-fit: cover; }
.feature-image figcaption, .gallery-item figcaption { display: flex; justify-content: space-between; padding-top: 13px; color: #716b62; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.feature-image figcaption::after, .gallery-item figcaption::after { content: "Gemistos / Project"; opacity: .55; }

.story { padding: 145px 0 155px; background: #11110f; color: white; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.17); }
.story article { min-height: 390px; padding: 30px 42px 10px 0; border-right: 1px solid rgba(255,255,255,.17); display: flex; flex-direction: column; }
.story article:not(:first-child) { padding-left: 42px; }
.story article:last-child { border: 0; }
.story span { color: var(--bronze-light); font-size: 10px; }
.story h2 { margin: auto 0 24px; font-size: 38px; font-style: italic; }
.story p { min-height: 86px; margin-bottom: 0; color: rgba(255,255,255,.57); font-size: 12px; }

.gallery { padding: 170px 0 190px; background: var(--paper); }
.gallery-heading { display: grid; grid-template-columns: .55fr 1.45fr; align-items: start; max-width: none; margin-bottom: 120px; }
.gallery-heading .eyebrow { padding-top: 10px; }
.gallery-heading h2 { max-width: 800px; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 130px 24px; align-items: start; }
.gallery-item { margin: 0; }
.gallery-item:nth-child(4n+1) { grid-column: 1 / 13; }
.gallery-item:nth-child(4n+2) { grid-column: 1 / 7; }
.gallery-item:nth-child(4n+3) { grid-column: 8 / 13; margin-top: 180px; }
.gallery-item:nth-child(4n+4) { grid-column: 3 / 11; }
.gallery-item img { height: clamp(430px, 44vw, 680px); object-fit: cover; }
.gallery-item:nth-child(4n+1) img { height: min(70vw, 880px); }
.gallery-item:nth-child(4n+3) img { height: clamp(480px, 52vw, 760px); }

.project-enquiry { padding: 155px 0; background: var(--paper-light); }
.project-enquiry-layout { width: var(--shell); margin-inline: auto; display: grid; grid-template-columns: .75fr 1.25fr; gap: 10vw; align-items: start; }
.project-enquiry .section-kicker { margin: 0 0 18px; color: #815e40; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.project-enquiry-intro { position: sticky; top: 110px; }
.project-enquiry h2 { margin-bottom: 24px; font-style: italic; }
.project-enquiry-intro > p:not(.section-kicker) { max-width: 430px; color: #68625a; font-size: 15px; }
.project-form { padding: 46px; background: white; border: 1px solid rgba(17,17,15,.1); box-shadow: 0 28px 70px rgba(31,25,18,.07); }
.project-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 27px 22px; }
.project-field-wide { grid-column: 1 / -1; }
.project-field > span { display: block; margin-bottom: 8px; color: #6d665d; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.project-field input, .project-field textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(17,17,15,.24); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.project-field textarea { min-height: 112px; resize: vertical; }
.project-field input:focus, .project-field textarea:focus { border-color: var(--bronze); }
.project-form-submit { grid-column: 1 / -1; margin-top: 8px; display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.project-form-submit p { max-width: 330px; margin: 0; color: #79736a; font-size: 11px; }
.project-submit { min-height: 53px; padding: 0 25px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; cursor: pointer; font-size: 12px; transition: background .25s, color .25s, transform .25s; }
.project-submit:hover { background: var(--bronze); border-color: var(--bronze); color: var(--ink); transform: translateY(-2px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border: 1px solid transparent; border-radius: 99px; background: var(--ink); color: white; font-size: 12px; font-weight: 600; transition: .2s; }
.button:hover { background: #37332d; transform: translateY(-2px); }

.next-project { position: relative; min-height: 76svh; display: flex; align-items: center; color: white; overflow: hidden; }
.next-media, .next-shade { position: absolute; inset: 0; }
.next-media { background-size: cover; background-position: center; transition: transform .6s; }
.next-shade { background: linear-gradient(90deg, rgba(8,8,7,.74), rgba(8,8,7,.38)); }
.next-project:hover .next-media { transform: scale(1.025); }
.next-content { position: relative; z-index: 1; text-align: left; }
.next-content h2 { margin-bottom: 22px; font-size: clamp(64px, 9.5vw, 128px); line-height: .84; }
.next-content span { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }

.site-footer { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0 28px; background: radial-gradient(circle at 12% 0%, rgba(165,122,84,.12), transparent 32%), #090908; color: white; border-top: 1px solid rgba(212,180,145,.34); }
.site-footer::before { content: "GEMISTOS"; position: absolute; z-index: -1; left: 50%; bottom: -6.5vw; transform: translateX(-50%); color: rgba(255,255,255,.025); font-family: var(--display); font-size: clamp(150px, 22vw, 360px); letter-spacing: -.065em; line-height: .7; white-space: nowrap; pointer-events: none; }
.site-footer::after { content: ""; position: absolute; z-index: -1; top: 0; left: 7%; width: 1px; height: 112px; background: linear-gradient(var(--bronze-light), transparent); opacity: .65; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 7vw; padding-bottom: 92px; }
.footer-grid > div:not(:first-child) { padding-top: 8px; }
.footer-grid img { width: 175px; height: auto; margin-bottom: 27px; }
.footer-grid p { max-width: 320px; color: rgba(255,255,255,.46); font-family: var(--display); font-size: 19px; line-height: 1.4; }
.footer-grid h2 { margin-bottom: 26px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--bronze-light); }
.footer-grid a { position: relative; display: table; margin: 12px 0; padding-right: 22px; color: rgba(255,255,255,.6); font-size: 14px; transition: color .25s, transform .25s; }
.footer-grid a::after { content: "↗"; position: absolute; right: 0; opacity: 0; transform: translate(-5px, 5px); transition: opacity .25s, transform .25s; }
.footer-grid a:hover { color: white; transform: translateX(3px); }
.footer-grid a:hover::after { opacity: .7; transform: translate(0, 0); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; color: rgba(255,255,255,.35); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom a { transition: color .25s; }
.footer-bottom a:hover { color: var(--bronze-light); }
.mobile-cta { display: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 48px, 760px); }
  .site-header { padding: 0 24px; grid-template-columns: 1fr auto; }
  .header-call { display: none; }
  .menu-toggle { display: block; z-index: 2; }
  .main-nav { position: fixed; inset: 0; padding: 110px 24px 50px; background: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 16px; font-family: var(--display); font-size: 38px; opacity: 0; visibility: hidden; transition: .2s; }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .project-hero-content { grid-template-columns: 1fr; }
  .project-hero h1, .project-hero-summary { grid-column: 1; }
  .project-hero-summary { max-width: 560px; margin-top: 38px; }
  .project-intro, .project-enquiry-layout { grid-template-columns: 1fr; gap: 50px; }
  .project-enquiry-intro { position: static; }
  .project-intro::before { display: none; }
  .project-intro-copy { max-width: 620px; padding-top: 10px; }
  .story-grid { grid-template-columns: 1fr; }
  .story article, .story article:not(:first-child) { min-height: 0; padding: 30px 0 38px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .story h2 { margin: 60px 0 18px; }
  .story p { min-height: 0; max-width: 600px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { gap: 80px 20px; }
  .gallery-item:nth-child(4n+2) { grid-column: 1 / 8; }
  .gallery-item:nth-child(4n+3) { grid-column: 7 / 13; margin-top: 100px; }
  .gallery-item:nth-child(4n+4) { grid-column: 2 / 12; }
}

@media (max-width: 650px) {
  :root { --shell: calc(100% - 36px); }
  body { padding-bottom: 58px; }
  .site-header { height: 72px; padding: 0 18px; }
  .brand { width: 134px; }
  .project-hero { min-height: 780px; }
  .project-hero-content { padding: 135px 0 40px; }
  .back-link { margin-bottom: 74px; }
  .project-hero h1 { font-size: clamp(56px, 20vw, 82px); }
  .project-hero-summary { margin-top: 30px; padding-left: 16px; font-size: 18px; }
  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .project-intro, .gallery, .story, .project-enquiry { padding: 100px 0; }
  .project-intro-copy .lead { font-size: 23px; }
  .feature-image { width: calc(100% - 18px); margin-bottom: 100px; }
  .feature-image img { height: 520px; }
  .gallery-heading { margin-bottom: 70px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 46px; }
  .gallery-item:nth-child(n) { grid-column: auto; margin-top: 0; }
  .gallery-item img, .gallery-item:nth-child(n) img { height: 460px; }
  .gallery-item:nth-child(even) { width: calc(100% - 36px); margin-left: auto; }
  .gallery-item:nth-child(odd) { width: calc(100% - 18px); }
  .project-form { padding: 32px 21px; }
  .project-form-grid { grid-template-columns: 1fr; }
  .project-field.full, .project-form-submit { grid-column: auto; }
  .project-form-submit { flex-direction: column; align-items: stretch; }
  .project-submit { width: 100%; }
  .next-project { min-height: 500px; }
  .next-content h2 { font-size: clamp(58px, 19vw, 82px); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { padding-top: 88px; }
  .site-footer::before { bottom: 22px; font-size: 27vw; }
  .site-footer::after { left: 18px; height: 75px; }
  .footer-grid { padding-bottom: 70px; }
  .footer-grid > div:not(:first-child) { padding-top: 0; }
  .footer-bottom { display: block; }
  .footer-bottom a { display: block; margin-top: 10px; }
  .mobile-cta { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--bronze); color: var(--ink); font-size: 12px; font-weight: 600; }
}

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