/* ================================================================
   GREENFIELD CONSULTING / HOMEPAGE V1
   Colours match the existing Greenfield website.
   Edit text in index.html; motion and video settings are in script.js.
   ================================================================ */

/* 01. Fonts are local: no font service or build step is needed. */
@font-face { font-family: Inter; src: url("assets/fonts/inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/inter-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Cormorant; src: url("assets/fonts/cormorant-garamond-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Cormorant; src: url("assets/fonts/cormorant-garamond-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
:root {
  --cream: #F2EDE2;
  --brown: #34120B;
  --teal: #006B8C;
  --text-muted: #6B5147;
  --text-light: #E4D8C9;
  --line: #34120B38;
  --light-line: #F2EDE24A;
  --serif: Cormorant, Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --gutter: clamp(24px, 5vw, 88px);
  --content-width: 1440px;
  --section-space: clamp(80px, 9vw, 145px);
  --header-height: 96px;
}

/* 02. Shared typography, layout and controls */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; font: 400 1rem/1.8 var(--sans); color: var(--brown); background: var(--cream); }
body.menu-open { overflow: hidden; }
h1,h2,h3,p,figure,blockquote { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(3rem, 5.6vw, 5.5rem); }
h3 { font-size: clamp(1.8rem, 2.7vw, 2.65rem); }
em { font-weight: 400; }
img,video { display: block; max-width: 100%; }
button,input,summary { font: inherit; }
button,summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 6px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--content-width)); margin-inline: auto; }
.section-space { padding-block: var(--section-space); }
.eyebrow { font: 500 .875rem/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; margin-bottom: 28px; }
.lead { font-size: 1.12rem; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; width: fit-content; padding-block: 10px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: .875rem; font-weight: 500; }
.text-link:hover { color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 52px; padding: 14px 24px; border: 1px solid transparent; text-decoration: none; font-size: .875rem; line-height: 1.6; font-weight: 500; transition: background .2s, color .2s; }
.button-outline { background: transparent; color: var(--brown); border-color: var(--line); }
.button-outline:hover { border-color: var(--teal); color: var(--teal); }
.button-light { background: var(--cream); color: var(--brown); }
.button-light:hover { background: #FFFFFF; }
.button-teal { background: var(--teal); color: var(--cream); }
.button-teal:hover { background: var(--brown); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--cream); padding: 12px 18px; }
.skip-link:focus { top: 18px; }
.reading-progress { position: fixed; inset: auto 0 0; height: 3px; pointer-events: none; z-index: 60; }
.reading-progress span { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }

/* 03. Logo and navigation */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: var(--header-height); }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 188px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.site-nav a { font-size: .875rem; text-decoration: none; white-space: nowrap; padding-block: 12px; }
.site-nav a:hover,.site-nav a[aria-current="location"] { color: var(--teal); }
.menu-toggle { display: none; }

/* 04. Alpine video opening. The neutral overlay keeps the natural colours.
   Lower the alpha values below to reveal more video; 0 means no shading. */
.hero { position: relative; isolation: isolate; background: var(--brown); color: var(--cream); overflow: hidden; }
.hero-visual { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.media-layer { position: absolute; inset: -150px 0; transform: translate3d(0,var(--media-y,0px),0); }
.media-layer img,.media-layer video { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .media-layer { background: url("assets/images/alpine-landscape.jpg") center/cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.12) 45%,rgba(0,0,0,.42) 100%); }
.hero-content { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .hero-eyebrow,.hero .hero-intro { color: var(--cream); }
.hero-content { min-height: 100svh; position: relative; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-height) + 70px); padding-bottom: 100px; }
.hero-eyebrow { color: var(--text-light); }
.hero h1 { font-size: clamp(4rem, 8.9vw, 8.8rem); line-height: .98; max-width: 1200px; }
.hero h1 em { color: var(--cream); }
.hero-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 45px; margin-top: 48px; }
.hero-intro { max-width: 410px; font-size: 1rem; color: var(--text-light); }
.hero-discover { color: var(--cream); }
.hero-discover:hover { color: #FFFFFF; }
video[hidden] { display: none; }

/* 05. Our firm — editorial copy, original Greenfield photography, real read-more. */
.about-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr); gap: 8%; align-items: center; }
.about-copy h2 { font-size: clamp(3rem, 5vw, 5rem); }
.about-copy > p:not(.eyebrow) { margin-top: 24px; }
.about-copy > p:not(.lead):not(.eyebrow) { color: var(--text-muted); }
.image-window { position: relative; overflow: hidden; }
.about-image { height: min(720px,calc(100svh - var(--header-height) - 48px)); min-height: 440px; align-self: start; position: sticky; top: calc(var(--header-height) + 24px); }
.about-image img { object-position: 37% center; filter: saturate(.7); }
.firm-statement { display: flex; align-items: end; justify-content: space-between; gap: 70px; padding-top: 50px; margin-top: 80px; border-top: 1px solid var(--line); }
.firm-statement > p { max-width: 920px; font: 400 clamp(1.7rem,2.7vw,2.6rem)/1.25 var(--serif); letter-spacing: -.02em; }
.firm-statement > a { flex-shrink: 0; }
.section-more { margin-top: 32px; }
.section-more > summary { list-style: none; width: fit-content; }
.section-more > summary::-webkit-details-marker { display: none; }
.expand-mark { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.expand-mark::before,.expand-mark::after { content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 1px; background: currentColor; }
.expand-mark::after { transform: rotate(90deg); }
details[open] > summary .expand-mark::after { transform: none; }
.expanded-copy { padding-top: 32px; }
.expanded-copy h3 { margin: 30px 0 18px; }
.expanded-copy h3:first-child { margin-top: 0; }
.expanded-copy p + p { margin-top: 18px; }
.expanded-copy .text-link { margin-top: 24px; }

/* 06. Principles — a restrained dark chapter with the original brand quotation. */
.principles { background: var(--brown); color: var(--cream); }
.principles-intro { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 11%; align-items: start; }
.principles-heading { position: sticky; top: calc(var(--header-height) + 50px); }
.principles-heading .eyebrow { color: var(--text-light); }
.principles-heading h2 { font-size: clamp(3.2rem,5.6vw,5.5rem); }
.principles-copy { padding-top: 52px; }
.principles-copy > p + p { margin-top: 24px; color: var(--text-light); }
.principle-preview article { border-top: 1px solid var(--light-line); padding-top: 25px; margin-top: 32px; }
.principle-preview h3 { margin-top: 0; }
.principle-preview p { color: var(--text-light); }
.brand-quote { border-top: 1px solid var(--light-line); padding-top: 70px; margin-top: 100px; }
.brand-quote p { font: 400 clamp(2.2rem, 4.7vw, 4.6rem)/1.12 var(--serif); letter-spacing: -.03em; max-width: 1200px; }
.brand-quote cite { display: block; margin-top: 28px; font: 400 .875rem/1.7 var(--sans); color: var(--text-light); }

/* 07. Purpose — a pinned landscape; the values slide over it as a paper chapter. */
.purpose { position: relative; isolation: isolate; background: var(--cream); }
.purpose-cover { position: sticky; top: 0; min-height: 100svh; display: flex; align-items: end; padding-block: calc(var(--header-height) + 60px) 90px; color: var(--cream); }
.purpose-visual { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.purpose-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,#34120B2B 0%,#34120B70 40%,#34120BDE 100%); }
.purpose-cover-copy h2 { font-size: clamp(3.5rem,7.4vw,7.2rem); }
.purpose-line { margin-top: 30px; color: var(--text-light); font-size: 1.12rem; }
.values-section { position: relative; z-index: 1; width: 100%; max-width: none; padding-inline: var(--gutter); background: var(--cream); }
.values-intro { max-width: 970px; margin-left: auto; font: 400 clamp(1.7rem, 3vw, 2.7rem)/1.3 var(--serif); letter-spacing: -.02em; }
.values-preview { max-width: var(--content-width); margin: 65px auto 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 45px 6%; }
.values-preview article { border-top: 1px solid var(--line); padding-top: 25px; }
.values-preview h3 { font-size: clamp(1.9rem,2.7vw,2.8rem); }
.values-preview p { margin-top: 20px; color: var(--text-muted); }
.values-more { max-width: var(--content-width); margin: 50px auto 0; }
.values-detail { max-width: 920px; }
.values-detail > h3 { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.values-detail > p { margin-top: 18px; }

/* 08. Contact — source address and a working email link, no invented details. */
.contact { background: var(--brown); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10%; align-items: end; }
.contact h2 { font-size: clamp(3.5rem,7vw,7rem); }
.contact-details { padding-bottom: 5px; }
.contact-company { font-size: 1.12rem; margin-bottom: 20px; }
address { font-style: normal; color: var(--text-light); }
.contact-email { display: block; width: fit-content; font-size: clamp(1rem,1.5vw,1.3rem); margin-top: 25px; }
.contact-details .button { margin-top: 32px; }
.contact-details .button:hover { background: var(--cream); color: var(--brown); }

/* 09. Closing identity */
.site-footer { padding-block: 50px 24px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.footer-brand img { width: 190px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 26px; }
.footer-nav a { font-size: .875rem; text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); margin-top: 42px; padding-top: 20px; font-size: .75rem; color: var(--text-muted); }

/* 10. Progressive enhancement: no script means every text block is visible. */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.motion-ready [data-image-reveal] { clip-path: inset(8% 3%); transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1); }
.motion-ready [data-image-reveal].is-visible { clip-path: inset(0); }
.reveal-word { opacity: var(--word-opacity,1); transition: opacity .12s linear; }

/* 11. Responsive layouts */
@media (max-width: 1100px) {
  :root { --header-height: 84px; }
  .brand img { width: 160px; }
  .header-inner { gap: 22px; }
  .site-nav { gap: 18px; }
  .hero h1 { font-size: 9.4vw; }
  .about-grid { gap: 6%; }
  .about-image { height: 680px; }
  .values-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1000px) {
  :root { --header-height: 78px; }
  .brand img { width: 170px; }
  .js .menu-toggle { display: flex; align-items: center; gap: 14px; min-height: 44px; background: none; border: 0; padding: 10px 0 10px 10px; color: var(--brown); font-size: .875rem; }
  .menu-lines { width: 24px; height: 9px; border-block: 1px solid currentColor; }
  .menu-toggle[aria-expanded="true"] .menu-lines { height: 0; border-bottom: 0; }
  .js .site-nav { position: fixed; inset: var(--header-height) 0 0; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 40px var(--gutter); gap: 18px; background: var(--cream); visibility: hidden; opacity: 0; pointer-events: none; overflow-y: auto; transition: opacity .25s, visibility .25s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .js .site-nav a { font: 400 clamp(1.7rem,4vw,2.7rem)/1.2 var(--serif); white-space: normal; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; }
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-inner { padding-block: 18px; }
  html:not(.js) .site-nav { padding-bottom: 12px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-intro { grid-column: 1 / -1; }
  .hero-discover { justify-self: start; }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .about-copy { max-width: 850px; }
  .about-image { height: 480px; min-height: 0; position: relative; top: auto; }
  .firm-statement { gap: 35px; align-items: start; }
  .principles-intro { gap: 7%; }
  .principles-heading { position: static; }
  .principles-heading h2 { font-size: 3.8rem; }
  .contact-grid { gap: 7%; }
  .footer-main { align-items: start; }
  .footer-nav { max-width: 450px; }
}
@media (max-width: 700px) {
  :root { --header-height: 76px; }
  .brand img { width: 158px; }
  .hero-content { padding-top: calc(var(--header-height) + 55px); padding-bottom: 95px; min-height: 100svh; }
  .hero h1 { font-size: clamp(3.2rem,11.3vw,5.2rem); }
  .hero-bottom { margin-top: 35px; gap: 28px 18px; }
  .hero-eyebrow { font-size: .8rem; }
  .about-copy h2 { font-size: clamp(2.8rem,8.5vw,3.6rem); }
  .about-image { height: 470px; }
  .firm-statement { flex-direction: column; margin-top: 50px; padding-top: 35px; }
  .principles-intro { grid-template-columns: minmax(0,1fr); gap: 38px; }
  .principles-heading h2 { font-size: clamp(3rem,9vw,4rem); }
  .principles-copy { padding-top: 0; }
  .brand-quote { margin-top: 70px; padding-top: 45px; }
  .brand-quote p { font-size: clamp(2.4rem,7.5vw,3.4rem); }
  .purpose-cover { position: relative; min-height: 88svh; padding-bottom: 65px; }
  .purpose-cover-copy h2 { font-size: clamp(3rem,10.6vw,4.5rem); }
  .purpose-line { font-size: 1rem; }
  .values-preview { gap: 35px 28px; }
  .values-preview h3 { font-size: 2rem; }
  .values-intro { font-size: 1.9rem; }
  .contact-grid { grid-template-columns: minmax(0,1fr); gap: 45px; }
  .contact h2 { font-size: clamp(3.5rem,11vw,4.6rem); }
  .contact-email { overflow-wrap: anywhere; }
  .footer-main { flex-direction: column; gap: 35px; }
  .footer-nav { justify-content: start; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .media-layer { inset: -80px 0; }
}
@media (max-width: 450px) {
  .values-preview { grid-template-columns: minmax(0,1fr); }
  .hero-content { padding-top: calc(var(--header-height) + 40px); }
  .hero h1 { font-size: clamp(3rem,11.6vw,3.5rem); }
  .hero-intro { font-size: 1rem; }
  .about-image { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  .motion-ready [data-image-reveal] { clip-path: none; }
  .reveal-word { opacity: 1 !important; }
  .media-layer { transform: none; }
  .purpose-cover { position: relative; }
}
@media print {
  .site-header,.hero-visual,.purpose-visual,.reading-progress { display: none; }
  body,.hero,.principles,.contact { background: white; color: #34120B; }
  .hero-content { min-height: auto; padding-top: 20px; }
  .purpose-cover { min-height: auto; position: relative; color: #34120B; }
  [data-reveal],.reveal-word { opacity: 1 !important; transform: none !important; }
  [data-image-reveal] { clip-path: none !important; }
}
