/* =====================================================================
   OUR STORY — "The countryside, made into print"
   A real photograph fills the screen; the camera pulls back and it becomes
   the cover of a thick, perfect-bound magazine that turns to show its
   spine. Scoped to .about-page. Choreography: about-scene.js (GSAP).
   JS sets the finished cover rectangle: --cl --ct --cw --ch, thickness --mt.
   ===================================================================== */

.about-page{ --paper:#f7f3ea; --paper-2:#efe6d3; --ink:#14263b; --ink-dim:#5d6a78; --em:#9a7327; --hair:rgba(20,38,59,.12); }

/* warm paper behind every section so sub-pixel seams between them never show navy */
.about-page main{ background:var(--paper); }

/* nav stays solid navy over the photograph */
.about-page .nav{ background:rgba(11,30,58,.9); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid rgba(240,235,224,.08); }

/* ---------------------------------------------------------------------
   HERO STAGE — a linen tabletop the magazine comes to rest on
   --------------------------------------------------------------------- */
.ab-hero{ height:100svh; min-height:600px; padding:0 var(--pad); justify-content:center; isolation:isolate; perspective:2000px;
  background:radial-gradient(75% 70% at 50% 45%, #f6efe1 0%, #ece1cb 58%, #ddcfb3 100%); }
.ab-hero::before{ content:""; position:absolute; inset:0; opacity:.6; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0.11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.ab-stage, .ab-turn{ position:absolute; inset:0; transform-style:preserve-3d; will-change:transform;
  transform-origin:calc(var(--cl,0px) + var(--cw,100%) / 2) calc(var(--ct,0px) + var(--ch,100%) / 2) calc(var(--mt,0px) * -.5); }

/* the farmhouse table: revealed as the camera pulls back from the farm shop. Window light
   from the upper left (matching the magazine's own lighting) drifts slowly across the wood. */
.ab-table{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.ab-table img{ position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:50% 50%; }
.ab-table::after{ content:""; position:absolute; inset:0; background:radial-gradient(75% 75% at 50% 52%, rgba(10,6,2,0) 55%, rgba(10,6,2,.42) 100%); }
.ab-table__light{ position:absolute; inset:-25%; mix-blend-mode:soft-light; opacity:.9;
  background:radial-gradient(34% 30% at 34% 38%, rgba(255,210,140,.75), rgba(255,210,140,0) 70%);
  animation:ab-table-light 22s ease-in-out infinite alternate; }
@keyframes ab-table-light{ 0%{ transform:translate(-4%,-3%) scale(1); } 100%{ transform:translate(9%,6%) scale(1.12); } }
@media (max-width:760px){ .ab-table img{ object-position:50% 50%; } } /* phones get their own tall crop */

/* contact shadow on the table (stays put while the magazine turns) */
.ab-shadow{ position:absolute; left:calc(var(--cl,30%) + var(--cw,40%) * .06); top:calc(var(--ct,10%) + var(--ch,80%) * .1); width:calc(var(--cw,40%) * .94); height:calc(var(--ch,80%) * .94);
  opacity:0; pointer-events:none; border-radius:8px; background:rgba(14,8,2,.62); filter:blur(26px); transform-origin:50% 100%; }

/* ---------------------------------------------------------------------
   FRONT COVER — the photograph, clipped from full screen to the cover
   --------------------------------------------------------------------- */
.ab-scene{ position:absolute; inset:0; overflow:hidden; clip-path:inset(0px 0px 0px 0px round 0px); will-change:clip-path; backface-visibility:hidden; }
.ab-inner{ position:absolute; inset:0; transform-origin:50% 50%; will-change:transform; }
.ab-photo{ position:absolute; left:var(--ox,0px); top:var(--oy,0px); width:var(--dw,100%); height:var(--dh,100%); max-width:none; display:block; }
/* slow drifting sunlight across the photo */
.ab-light{ position:absolute; inset:-20%; pointer-events:none; mix-blend-mode:soft-light; opacity:.85;
  background:radial-gradient(40% 35% at 30% 30%, rgba(255,226,160,.85), rgba(255,226,160,0) 70%);
  animation:ab-light 14s ease-in-out infinite alternate; }
/* legibility for the opening title, fades away as the cover forms */
.ab-shade{ position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(90deg, rgba(14,20,14,.62) 0%, rgba(14,20,14,.32) 38%, rgba(14,20,14,0) 62%), linear-gradient(180deg, rgba(10,14,10,.25) 0%, transparent 30%, transparent 70%, rgba(10,14,10,.35) 100%); }

/* ---------------------------------------------------------------------
   THE MAGAZINE BODY — spine, page edges and back, built in 3D behind the
   cover. All faces hang off the cover rectangle and recede by --mt.
   --------------------------------------------------------------------- */
.mz{ position:absolute; inset:0; transform-style:preserve-3d; pointer-events:none; opacity:0; }
.mz > span{ position:absolute; display:block; backface-visibility:visible; }
.mz-back{ left:var(--cl); top:var(--ct); width:var(--cw); height:var(--ch); border-radius:2px;
  transform:translateZ(calc(var(--mt) * -1)); background:#0e1d33; box-shadow:0 0 0 1px rgba(0,0,0,.2); }
/* page block: hundreds of fine sheets, lit from the top-left */
.mz-edge{ background-color:#f4efe3;
  background-image:
    linear-gradient(var(--edge-light, 90deg), rgba(255,255,255,.55), rgba(0,0,0,.08)),
    repeating-linear-gradient(var(--edge-dir, 90deg), rgba(110,96,70,.0) 0 1.1px, rgba(110,96,70,.22) 1.1px 1.5px); }
.mz-edge--right{ left:calc(var(--cl) + var(--cw)); top:var(--ct); width:var(--mt); height:var(--ch); transform-origin:left center; transform:rotateY(90deg); --edge-dir:90deg; }
.mz-edge--bottom{ left:var(--cl); top:calc(var(--ct) + var(--ch)); width:var(--cw); height:var(--mt); transform-origin:top center; transform:rotateX(-90deg); --edge-dir:0deg; --edge-light:180deg; }
.mz-edge--top{ left:var(--cl); top:calc(var(--ct) - var(--mt)); width:var(--cw); height:var(--mt); transform-origin:bottom center; transform:rotateX(90deg); --edge-dir:0deg; }
/* perfect-bound spine: the cover wraps round, title in gold */
.mz-spine{ left:var(--cl); top:var(--ct); width:var(--mt); height:var(--ch); transform-origin:left center; transform:rotateY(90deg);
  background:linear-gradient(90deg, #0b1a2e 0%, #17304f 30%, #1d3a5e 52%, #12263f 100%);
  display:flex !important; align-items:center; justify-content:space-between; flex-direction:column; padding:6% 0; box-sizing:border-box; overflow:hidden; }
.mz-spine b, .mz-spine i{ writing-mode:vertical-rl; transform:rotate(180deg); white-space:nowrap; font-style:normal; }
.mz-spine b{ font-family:var(--display); font-weight:600; letter-spacing:.18em; text-transform:uppercase; font-size:calc(var(--mt) * .42);
  color:transparent; -webkit-background-clip:text; background-clip:text; background-size:100% 320%; background-position:0 var(--spine-glint, 0%);
  background-image:linear-gradient(180deg, #b48a3c 0%, #e6c87f 34%, #fbefc8 46%, #dcbb6c 56%, #b48a3c 70%, #e6c87f 100%); }
/* the spine catches the light as it swings toward the window */
.mz-spine::after{ content:""; position:absolute; inset:0; pointer-events:none; opacity:var(--spine-lit, 0);
  background:linear-gradient(90deg, rgba(255,240,210,0) 0%, rgba(255,240,210,.16) 45%, rgba(255,240,210,0) 100%); }
.mz-spine i{ font-family:var(--ui); letter-spacing:.24em; text-transform:uppercase; color:rgba(230,200,127,.7); font-size:calc(var(--mt) * .24); }

/* ---------------------------------------------------------------------
   COVER TYPOGRAPHY — a confident, high-end house style
   --------------------------------------------------------------------- */
.ab-cover, .ab-gloss{ position:absolute; left:var(--cl,30%); top:var(--ct,10%); width:var(--cw,40%); height:var(--ch,80%); }
.ab-cover{ container-type:inline-size; opacity:0; color:#fff; pointer-events:none; }
.ab-cover::before{ content:""; position:absolute; left:0; right:0; bottom:0; height:52%; background:linear-gradient(180deg, rgba(20,14,6,0) 0%, rgba(20,14,6,.58) 100%); }
.ab-cover::after{ content:""; position:absolute; left:0; right:0; top:0; height:38%; background:linear-gradient(180deg, rgba(20,14,6,.5) 0%, rgba(20,14,6,.32) 55%, rgba(20,14,6,0) 100%); }
.ab-mast{ position:absolute; z-index:1; left:0; right:0; top:0; padding:4.4cqw 6cqw 0; text-align:center; }
.ab-mast__meta{ display:flex; justify-content:space-between; font-family:var(--ui); font-weight:500; font-size:2.1cqw; letter-spacing:.26em; text-transform:uppercase; color:rgba(255,255,255,.92); margin-bottom:1.4cqw; text-shadow:0 .2cqw 1cqw rgba(0,0,0,.55); }
.ab-mast__meta i{ font-style:normal; }
.ab-mast__title{ display:block; overflow:hidden; font-family:var(--display); font-weight:600; font-size:16.4cqw; line-height:.94; letter-spacing:.035em; white-space:nowrap;
  color:#fff; text-shadow:0 .15cqw .6cqw rgba(0,0,0,.22), 0 .4cqw 2.4cqw rgba(0,0,0,.28); padding-top:.04em; }
.ab-mast__title span{ display:inline-block; }
/* gold foil: lies exactly over the white letters and takes over as the magazine turns */
.ab-mast__title{ position:relative; }
.ab-mast__foil{ position:absolute; left:0; right:0; top:0; padding-top:.04em; font-style:normal; font-kerning:none; opacity:0; text-shadow:none;
  color:transparent; -webkit-background-clip:text; background-clip:text; background-size:260% 100%;
  background-position:calc(var(--foil, 100%) + var(--glint, 0%)) 0;
  background-image:linear-gradient(105deg, #b8913f 0%, #e3c57a 15%, #fbefc6 26%, #e0bf6c 37%, #bf9646 50%, #e7cb82 64%, #fdf1cc 76%, #d6b25e 88%, #b8913f 100%); }
.ab-mast__sub{ display:flex; align-items:center; justify-content:center; gap:3cqw; margin-top:1.6cqw; font-family:var(--ui); font-weight:600; font-size:2.6cqw; letter-spacing:.6em; text-transform:uppercase; color:#f1d48a; padding-left:.6em; text-shadow:0 .2cqw 1.2cqw rgba(0,0,0,.7), 0 0 .4cqw rgba(0,0,0,.45); }
.ab-mast__sub i{ flex:1; max-width:15cqw; height:1px; background:rgba(241,212,138,.8); box-shadow:0 0 .8cqw rgba(0,0,0,.5); }
.ab-lines{ position:absolute; z-index:1; left:6cqw; right:24cqw; bottom:7.5cqw; display:flex; flex-direction:column; gap:2.2cqw; }
.ab-lines__kick{ font-family:var(--ui); font-weight:600; font-size:2.1cqw; letter-spacing:.22em; text-transform:uppercase; color:#f1d48a; }
.ab-lines__big{ font-family:var(--display); font-weight:500; font-size:11.5cqw; line-height:.98; letter-spacing:-.01em; text-shadow:0 1cqw 4cqw rgba(0,0,0,.35); }
.ab-lines__big em{ font-style:italic; color:#f1d48a; }
.ab-lines__small{ font-family:var(--serif); font-style:italic; font-size:3.2cqw; line-height:1.35; color:rgba(255,255,255,.9); max-width:56cqw; }
.ab-barcode{ position:absolute; z-index:1; right:6cqw; bottom:7.5cqw; width:14cqw; display:flex; flex-direction:column; gap:.8cqw; align-items:center; }
.ab-barcode i{ display:block; width:100%; height:8cqw; background:#fff; border-radius:.5cqw; box-sizing:border-box; border:1cqw solid #fff;
  background-image:repeating-linear-gradient(90deg,#1b1b1b 0 1.2px,transparent 1.2px 2.4px,#1b1b1b 2.4px 3px,transparent 3px 5px,#1b1b1b 5px 7px,transparent 7px 8.4px); background-origin:content-box; background-clip:content-box; }
.ab-barcode small{ font-family:var(--ui); font-size:1.6cqw; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.85); }

/* the turn: once printed, the magazine moves out of the light — the photograph settles
   darker under a warm multiply (never black), so the foil, spine and page block carry the eye.
   The inner layer adds the fall-off across the cover while it faces away. */
.ab-dim{ position:absolute; left:var(--cl,30%); top:var(--ct,10%); width:var(--cw,40%); height:var(--ch,80%); pointer-events:none; opacity:0; mix-blend-mode:multiply;
  background:linear-gradient(150deg, #ebe0cf 0%, #d6c8b2 55%, #c3b39b 100%); }
.ab-dim i{ position:absolute; inset:0; display:block; opacity:0; mix-blend-mode:multiply;
  background:linear-gradient(90deg, #fff 0%, #f3ede4 40%, #c9bba7 100%); }

/* soft-touch sheen: a slow band of light passes once the cover is printed */
.ab-gloss{ pointer-events:none; opacity:0;
  background:linear-gradient(115deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.22) 46%, rgba(255,255,255,0) 58%),
             linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 40%);
  background-size:260% 100%, 100% 100%; background-position:120% 0, 0 0; }

/* ---------------------------------------------------------------------
   OPENING TITLE over the photograph
   --------------------------------------------------------------------- */
.ab-title{ z-index:6; will-change:transform,opacity; }
.about-page .ab-hero .kicker{ color:#f1d48a; }
.about-page .ab-hero h1{ color:#fffaf0; text-shadow:0 2px 30px rgba(0,0,0,.35); }
.about-page .ab-hero h1 em{ color:#f1d48a; }
.about-page .ab-hero .page-hero__sub{ color:rgba(255,250,240,.9); text-shadow:0 1px 18px rgba(0,0,0,.4); }
.about-page .ab-hero .cue span{ color:#fffaf0; }

/* reduced motion / no-JS: the photograph and title, still — no pin, no cover */
.ab-hero.is-static .ab-cover, .ab-hero.is-static .mz, .ab-hero.is-static .ab-shadow, .ab-hero.is-static .ab-gloss{ display:none; }
.ab-hero.is-static .ab-light{ animation:none; }

/* ---------------------------------------------------------------------
   BRIGHTER PAGE — warm paper sections below the hero
   --------------------------------------------------------------------- */
.about-page .story{ max-width:none; background:var(--paper); padding-left:max(var(--pad), calc((100% - 1100px)/2)); padding-right:max(var(--pad), calc((100% - 1100px)/2)); }
.about-page .story .kicker, .about-page .standout .kicker{ color:var(--em); }
.about-page .story__lead{ color:var(--ink); }
.about-page .story__lead em{ color:var(--em); }
.about-page .story__body p{ color:var(--ink-dim); }
.about-page .story__body p:first-child::first-letter{ float:left; font-family:var(--display); font-size:4.2em; line-height:.82; padding:.08em .12em 0 0; color:var(--em); }

.about-page .pull{ position:relative; background:linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); overflow:hidden; }
.about-page .pull blockquote{ color:var(--ink); }
.about-page .pull blockquote em{ color:var(--em); }
.about-page .pull::before, .about-page .pull::after{ content:"\201C"; position:absolute; font-family:var(--display); font-size:clamp(10rem,22vw,20rem); line-height:1; color:rgba(184,146,58,.12); }
.about-page .pull::before{ left:4%; top:-.08em; }
.about-page .pull::after{ content:"\201D"; right:4%; bottom:-.5em; }

.about-page .stats{ max-width:none; margin:0; border:0; background:var(--paper-2); gap:clamp(1rem,2vw,1.6rem);
  padding:clamp(1rem,3vh,2rem) max(var(--pad), calc((100% - 1100px)/2)) clamp(4rem,9vh,6rem); }
.about-page .stat{ background:#fffdf8; border-radius:20px; padding:clamp(2rem,4vw,2.8rem) 1.4rem; box-shadow:0 30px 60px -44px rgba(60,40,10,.5), 0 0 0 1px rgba(154,115,39,.14);
  transition:transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.about-page .stat:hover{ transform:translateY(-6px); box-shadow:0 44px 70px -44px rgba(60,40,10,.55), 0 0 0 1px rgba(154,115,39,.3); }
.about-page .stat__num{ color:var(--ink); }
.about-page .stat__label{ color:var(--em); }

.about-page .standout{ max-width:none; background:var(--paper); padding-left:max(var(--pad), calc((100% - 1100px)/2)); padding-right:max(var(--pad), calc((100% - 1100px)/2)); }
.about-page .standout__title{ color:var(--ink); }
.about-page .standout__title em{ color:var(--em); }
.about-page .standout__list li, .about-page .standout__list li:last-child{ border-color:var(--hair); transition:padding-left .5s var(--ease-out); }
.about-page .standout__list li:hover{ padding-left:.8rem; }
.about-page .standout__n{ color:var(--em); }
.about-page .standout__t{ color:var(--ink); }

/* closing photo: a garden terrace, coffee and a magazine — the one customers take home */
.about-page .page-close__media img{ object-position:40% 92%; }
.about-page .page-close__grade{ background:linear-gradient(90deg, rgba(10,14,20,.8) 0%, rgba(10,14,20,.5) 42%, rgba(10,14,20,.12) 100%), linear-gradient(180deg, rgba(10,14,20,.3), transparent 40%, rgba(10,14,20,.5)); }

@keyframes ab-light{ 0%{ transform:translate(0,0) scale(1); } 100%{ transform:translate(22%,12%) scale(1.15); } }
@media (prefers-reduced-motion:reduce){ .ab-light, .ab-table__light{ animation:none; } }
