:root {
  --ink: #16170f;
  --text: #2a2c22;
  --muted: #6b6d60;
  --olive: #3c4a1e;
  --line: #3c4a1e;
  --paper: #ffffff;
  --sand: #f5f1e8;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 3.4vw, 44px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { text-decoration: none; display: inline-block; line-height: 1; }
.brand b { display: block; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -0.01em; color: var(--ink); }
.brand b i { font-style: normal; font-size: .8em; }
.brand span { display: block; margin-top: 5px; font-size: 10.5px; letter-spacing: .42em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 38px; }
.nav a { text-decoration: none; font-size: 16px; color: var(--ink); }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--olive); color: var(--olive);
  padding: 11px 22px; font: 500 16px var(--sans); text-decoration: none;
  background: transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--olive); color: #fff; }
.btn .arrow { font-size: 1.15em; line-height: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); align-items: stretch; max-width: calc(var(--max) + (100vw - var(--max)) / 2); margin-left: auto; }
.hero-text { padding: clamp(40px, 8vw, 110px) 24px clamp(40px, 6vw, 90px) var(--gutter); align-self: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--olive); }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); margin: 22px 0 26px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 30em; }
.hero .btn { margin-top: 34px; }
.hero-img { min-height: min(72vh, 640px); }

/* Sections */
.section { padding: clamp(48px, 7vw, 96px) 0 0; }
.section-head { display: flex; align-items: center; gap: 28px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.section-head h2 { font-size: clamp(34px, 4.2vw, 56px); white-space: nowrap; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { text-decoration: none; display: block; }
.card figure { margin: 0; aspect-ratio: 1 / 1.03; overflow: hidden; background: var(--sand); }
.card img { transition: transform .6s ease; }
.card:hover img { transform: scale(1.035); }
.card h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; margin-top: 14px; }
.card p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.statement { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }
.statement h2 { font-size: clamp(38px, 5.2vw, 76px); }
.statement p { font-size: 19px; max-width: 22em; }
.link { display: inline-block; margin-top: 18px; color: var(--olive); font-weight: 500; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.cta { background: var(--sand); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(36px, 4.5vw, 60px); padding-bottom: clamp(36px, 4.5vw, 60px); flex-wrap: wrap; }
.cta h2 { font-size: clamp(30px, 4vw, 56px); }
.cta .btn { padding: 14px 34px; font-weight: 600; }

/* Footer */
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 34px; padding-bottom: 28px; flex-wrap: wrap; }
.site-footer .brand b { font-size: 28px; }
.site-footer nav { display: flex; gap: 34px; padding-top: 10px; }
.site-footer nav a { text-decoration: none; font-size: 15px; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.note { width: 100%; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Inner pages */
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(44px, 6vw, 88px); margin-top: 18px; }
.page-head .lead { margin-top: 22px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { border: 1px solid #cfd1c4; background: #fff; color: var(--ink); padding: 9px 18px; font: 500 15px var(--sans); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.gallery .wide { grid-column: span 2; }
.gallery .wide .ph { aspect-ratio: 2 / 1; }
.gallery figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 10px; color: var(--muted); }
.gallery figcaption b { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.gallery [hidden] { display: none; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.about .pic { aspect-ratio: 4 / 3; background: var(--sand); position: sticky; top: 110px; }
.about .copy p { font-size: clamp(18px, 1.6vw, 21px); margin-bottom: 1.2em; }
.about .copy p.signoff { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); margin-top: 1.2em; }
.makes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.makes li { padding: 22px 0; border-bottom: 1px solid #d9dbcf; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; color: var(--ink); }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); }
.contact h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.contact dl { margin: 28px 0 0; border-top: 1px solid var(--line); }
.contact dt { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); font-weight: 600; padding-top: 18px; }
.contact dd { margin: 4px 0 0; padding-bottom: 18px; border-bottom: 1px solid #d9dbcf; color: var(--muted); }
form label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: 20px; }
form input, form textarea, form select {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  border: 1px solid #c9ccbd; border-radius: 0; background: #fff;
  font: 400 17px var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none;
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--olive); outline-offset: 1px; }
form textarea { min-height: 150px; resize: vertical; }
.form-msg { margin-top: 16px; color: var(--olive); font-weight: 500; }

/* Responsive */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 68px; }
  .brand b { font-size: 28px; }
  .brand span { font-size: 9px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid #e4e5db; border-bottom: 1px solid #e4e5db;
    padding: 8px var(--gutter) 22px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; border-bottom: 1px solid #eceee4; }
  .nav .btn { margin-top: 20px; justify-content: center; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 34px var(--gutter) 34px; }
  .hero-img { min-height: 0; aspect-ratio: 4 / 3; order: 2; }
  .cards { grid-template-columns: 1fr; gap: 30px; }
  .card figure { aspect-ratio: 4 / 3; }
  .statement { grid-template-columns: 1fr; gap: 22px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .cta .btn { width: 100%; justify-content: center; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery figcaption { flex-direction: column; gap: 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .about .pic { position: static; }
  .makes { grid-template-columns: 1fr 1fr; }
  .site-footer nav { gap: 24px; padding-top: 0; }
}
@media (max-width: 480px) {
  .section-head h2 { white-space: normal; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
  .gallery .wide .ph { aspect-ratio: 4 / 3; }
}

/* ---------- Motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

.arrow { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow { transform: translateX(6px); }

/* Loops generated in Higgsfield sit on top of their poster image */
.hero-img, .card figure, .gallery .ph, .about .pic { position: relative; overflow: hidden; }
video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
video.loop.playing { opacity: 1; }

/* Ticker */
.ticker { overflow: hidden; border-top: 1px solid #e3e5da; border-bottom: 1px solid #e3e5da; margin-top: clamp(28px, 4vw, 56px); padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); color: var(--olive); white-space: nowrap; padding-right: 1.1em; }
.ticker span::after { content: "✳"; font-style: normal; font-size: .55em; vertical-align: middle; margin-left: 1.9em; opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: no-preference) {
  /* Page-load: hero */
  .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
  .line > span { display: block; transform: translateY(110%); animation: lineUp 1s cubic-bezier(.2,.75,.2,1) var(--d, 0s) forwards; }
  .rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.75,.2,1) var(--d, 0s) forwards; }
  .hero-img { animation: wipe 1.3s cubic-bezier(.65,0,.2,1) .1s both; }
  .hero-media { position: absolute; inset: -6% 0; will-change: transform; }
  .hero-media > img { animation: drift 22s ease-in-out infinite alternate; transform-origin: 60% 55%; }
  .site-header { animation: fadeDown .7s ease both; }

  /* Scroll reveals */
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease var(--d, 0s), transform 1s cubic-bezier(.2,.75,.2,1) var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .card[data-reveal] figure, .js figure[data-reveal] .ph, .js .pic[data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.65,0,.2,1) var(--d, 0s); }
  .js .card[data-reveal] figure img, .js figure[data-reveal] .ph img, .js .pic[data-reveal] img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(.2,.75,.2,1) var(--d, 0s); }
  .js .card[data-reveal].in figure, .js figure[data-reveal].in .ph, .js .pic[data-reveal].in { clip-path: inset(0); }
  .js .card[data-reveal].in figure img, .js figure[data-reveal].in .ph img, .js .pic[data-reveal].in img { transform: scale(1); }
  .js .card[data-reveal].in:hover figure img { transform: scale(1.04); transition-duration: .7s; transition-delay: 0s; }
  .js .section-head[data-reveal]::after { transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.65,0,.2,1) .25s; }
  .js .section-head[data-reveal].in::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-media { position: absolute; inset: 0; }
}
@keyframes lineUp { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } }

/* Palm fronds cover the whole hero; scrolling slides them apart (--p goes 0 -> 1).
   When the hero fits on screen it is pinned while the leaves open (.hero-pin.pinned). */
.fronds { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero { position: relative; }
  .js .hero-pin.pinned { height: var(--pin-h); }
  .js .hero-pin.pinned .hero-stick { position: sticky; top: var(--pin-top); }
  .js .fronds { display: block; position: fixed; inset: 0; overflow: clip; z-index: 30; pointer-events: none;
    --p: 0; --len: 88%; --out: 72%; }
  /* Each frond is hinged at its stem on the screen edge. As --p grows it swings aside like a real
     branch being pushed back, tilts towards the viewer, comes closer and leaves past the edge.
     --q is the frond's own progress: the middle ones go first, the corner ones last. */
  .fronds .side { position: absolute; inset: 0; perspective: 1500px; }
  .fronds .side.r { scale: -1 1; }
  .js .fronds.gone { visibility: hidden; }
  .fronds img { position: absolute; left: calc(var(--len) * -0.2);   /* the bare stem stays off-screen */ top: var(--y); width: calc(var(--len) * var(--s)); max-width: none; height: auto;
    margin-top: calc(var(--len) * var(--s) * -0.3144);   /* half of the image height, so the stem sits at --y */
    --q: clamp(0, (var(--p) - var(--d)) / 0.55, 1);
    transform-origin: 0 50%; will-change: transform;
    transform: translate3d(calc(var(--q) * var(--out) * -1), 0, 0)
               rotate(calc(var(--a) + var(--q) * var(--sw)))
               rotateY(calc(var(--q) * -38deg))
               scale(calc(1 + var(--q) * 0.3));
    transition: transform .65s cubic-bezier(.22,1.18,.36,1);
    animation: sway 7s ease-in-out infinite alternate; }
  /* leaves further back are darker, which gives the pile some depth */
  .fronds img:nth-child(3n+1) { filter: brightness(.7) saturate(.95); }
  .fronds img:nth-child(3n+2) { filter: brightness(.86); }
  .fronds img:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
  @keyframes sway { from { translate: 0 0; rotate: -1.2deg; } to { translate: 0 6px; rotate: 1.4deg; } }
  .scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; padding: 10px 22px 10px 24px; background: rgba(255,255,255,.94); color: #1a1a17;
    font: 500 12px/1 Figtree, sans-serif; letter-spacing: .28em; text-transform: uppercase; opacity: calc(1 - var(--p) * 5); animation: hint 1.8s ease-in-out infinite; }
  .scroll-hint::after { content: " \2193"; letter-spacing: 0; }
  @keyframes hint { 50% { translate: -50% 6px; } }
  @media (max-width: 900px) { .js .fronds { --len: 180%; --out: 105%; } }
}

.contact dd a { color: var(--ink, #1a1a17); text-decoration: underline; text-underline-offset: 3px; }
