/* Star Fencing & Landscaping: shared styles. Plan: _work/design-plan.md */
@font-face { font-family: 'Big Shoulders Display'; src: url('../fonts/big-shoulders-display.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
/* metric-matched fallbacks so nothing jumps as the web fonts arrive */
@font-face { font-family: 'BSD Fallback'; src: local('Arial Narrow'), local('ArialNarrow'); size-adjust: 93.4%; ascent-override: 118%; descent-override: 32%; line-gap-override: 0%; }
@font-face { font-family: 'IS Fallback'; src: local('Arial'); size-adjust: 102.5%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --forest: #13261A; --forest-2: #1B3324; --forest-deep: #0B1610;
  --leaf: #7DBA3A; --leaf-2: #93CC52; --leaf-dark: #3F7517;
  --timber: #B97A3E; --timber-deep: #6B4020; --timber-dark: #4A2C15;
  --stone: #ECEFE8; --sage: #DCE6D1; --white: #fff;
  --ink: #26302A; --ink-soft: #4A564E; --line: rgba(19, 38, 26, .14);
  --display: 'Big Shoulders Display', 'BSD Fallback', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', 'IS Fallback', Arial, sans-serif;
  --r: 8px; --r-btn: 3px;
  --gut: max(16px, 5vw);
  --hdr: 104px;
  --media-cap: min(76vh, 760px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { display: flow-root; margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--leaf); color: var(--forest); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(1320px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

.h2 { font-size: clamp(2.2rem, 3.5vw, 3.9rem); line-height: 1; margin-bottom: .4em; }
.lede { font-size: clamp(1.06rem, 1.2vw, 1.2rem); line-height: 1.55; color: var(--ink-soft); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* masked line reveals (frontend-design recipe; Big Shoulders has tall ascenders, so the +.1em variant) */
.ln-mask { padding: .3em .15em .5em; margin: -.8em -.15em -.5em; }
.ln-mask:first-child { margin-top: -.3em; }
.motion [data-split]:not(.is-split) { visibility: hidden; }

/* ---------- buttons (slight corners, 3px) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .7em 1.25em; border-radius: var(--r-btn); border: 2px solid transparent; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn--lg { min-height: 56px; padding: .85em 1.5em; font-size: 1.05rem; }
.btn .ico--arrow { transition: transform .3s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn--leaf { background: var(--leaf); color: var(--forest); }
.btn--leaf:hover { background: var(--leaf-2); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-2); }
.btn--line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--line-dark { border-color: var(--forest); color: var(--forest); }
.btn--line-dark:hover { background: var(--forest); color: #fff; }
.icon-btn { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: var(--r-btn); border: 2px solid currentColor; background: transparent; cursor: pointer; transition: background-color .25s, color .25s; }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn:first-child .ico { transform: scaleX(-1); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; pointer-events: none; }
.site-header__in { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 14px var(--gut); transition: padding .35s var(--ease); }
.site-header::before { content: ''; position: absolute; inset: 0; background: rgba(11, 22, 16, .92); backdrop-filter: blur(10px); opacity: 0; transform: translateY(-100%); transition: opacity .35s, transform .45s var(--ease); }
.site-header.is-stuck::before { opacity: 1; transform: none; }
.site-header.is-stuck .site-header__in { padding-top: 8px; padding-bottom: 8px; }
.site-header > * { pointer-events: auto; }
.brand { position: relative; display: block; width: 84px; height: 84px; flex: none; transition: width .35s var(--ease), height .35s var(--ease); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.brand img { width: 100%; height: 100%; }
.is-stuck .brand { width: 62px; height: 62px; }
.nav { flex: none; margin-left: auto; display: flex; transition: opacity .4s; align-items: center; gap: 6px; padding: 6px 6px 6px 10px; background: rgba(19, 38, 26, .9); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r); color: #fff; }
.is-stuck .nav { background: transparent; border-color: transparent; backdrop-filter: none; }
.nav__list { display: flex; align-items: center; flex: none; }
.nav__item { position: relative; }
.nav__item, .nav__phone, .nav__cta { flex: none; }
.nav__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; background: none; border: 0; text-decoration: none; font-weight: 500; font-size: .98rem; cursor: pointer; position: relative; }
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--leaf); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current]::after, .nav__link[data-current]::after, .nav__drop-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__drop-btn .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__drop-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 600; color: var(--leaf-2); }
.nav__cta { min-height: 44px; }
.drop { position: absolute; top: calc(100% + 14px); left: -40px; width: min(640px, 80vw); padding: 14px; background: var(--forest); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: none; }
.drop.is-open { display: block; animation: drop-in .4s var(--ease) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }
.drop.is-open .drop__grid li { animation: drop-in .5s var(--ease) both; }
.drop.is-open .drop__grid li:nth-child(2) { animation-delay: .04s; } .drop.is-open .drop__grid li:nth-child(3) { animation-delay: .08s; }
.drop.is-open .drop__grid li:nth-child(4) { animation-delay: .12s; } .drop.is-open .drop__grid li:nth-child(5) { animation-delay: .16s; } .drop.is-open .drop__grid li:nth-child(6) { animation-delay: .2s; }
.drop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.drop__link { display: block; text-decoration: none; border-radius: calc(var(--r) - 4px); overflow: hidden; position: relative; }
.drop__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.drop__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.drop__link:hover img, .drop__link:focus-visible img { transform: scale(1.08); }
.drop__name { position: absolute; inset: auto 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(11, 22, 16, .92)); font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.drop__link[aria-current] .drop__name { color: var(--leaf-2); }
.hdr-call, .menu-btn { display: none; }

/* ---------- mobile menu ---------- */
.menu-btn { border: 1px solid rgba(255, 255, 255, .2) !important; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-btn); background: var(--forest); color: #fff; font-weight: 600; cursor: pointer; }
.menu-btn__bars { width: 22px; height: 12px; position: relative; }
.menu-btn__bars i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn__bars i:first-child { top: 0; }
.menu-btn__bars i:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { top: 5px; transform: rotate(-45deg); }
.hdr-call { width: 48px; height: 48px; place-items: center; border-radius: var(--r-btn); background: var(--leaf); color: var(--forest); }
.hdr-call .ico { width: 22px; height: 22px; }
.menu { position: fixed; inset: 0; z-index: 90; color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu__boards { position: fixed; inset: 0; display: flex; }
.menu__boards i { flex: 1; background: var(--forest); border-right: 1px solid rgba(0, 0, 0, .25); box-shadow: inset -6px 0 12px rgba(0, 0, 0, .18); }
.menu__in { position: relative; min-height: 100%; padding: 120px var(--gut) 40px; display: flex; flex-direction: column; gap: 28px; }
.menu__list a { display: block; padding: 6px 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; text-decoration: none; }
.menu__list a[aria-current] { color: var(--leaf); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .nav__phone span { display: none; }
}
@media (max-width: 900px) {
  :root { --hdr: 84px; }
  .nav { display: none; }
  .hdr-call { display: grid; margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .brand { width: 66px; height: 66px; }
  .is-stuck .brand { width: 54px; height: 54px; }
  .site-header__in { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
}

/* ---------- framed media ---------- */
.frame { position: relative; margin: 0; isolation: isolate; }
.frame::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--timber); border-radius: var(--r); z-index: -1; }
.frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.frame > img { border-radius: var(--r); }
.frame__clip { position: relative; display: block; width: 100%; height: 100%; border-radius: var(--r); overflow: hidden; }
.frame__clip img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; border-radius: 0; }
.frame__cap { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: var(--forest); color: #fff; border-radius: calc(var(--r) - 3px); font-size: .9rem; font-weight: 500; }
.tag { display: inline-block; padding: 6px 12px; border-radius: calc(var(--r) - 3px); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.tag--before { background: rgba(11, 22, 16, .85); color: #fff; }
.tag--after { background: var(--leaf); color: var(--forest); }

/* the before/after divider: a clean white line (the handle button sits on it) */
.post { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; z-index: 4; pointer-events: none; }
.post__cap { display: none; }
.post__body { position: absolute; inset: 0; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 22, 16, .18), 0 0 18px rgba(0, 0, 0, .35); }

/* ---------- before/after compare (drag) ---------- */
.compare { position: relative; overflow: hidden; border-radius: var(--r); touch-action: pan-y; user-select: none; cursor: ew-resize; background: var(--forest); }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .post { left: var(--pos, 50%); top: 0; bottom: 0; }
.compare__handle { position: absolute; top: 50%; left: var(--pos, 50%); z-index: 5; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; background: #fff; color: var(--forest); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 8px 22px rgba(0, 0, 0, .35); border: 0; cursor: ew-resize; transition: transform .25s var(--ease); }
.compare__handle:hover { transform: scale(1.08); }
.compare__handle svg { width: 26px; height: 26px; }
.compare__tags { position: absolute; inset: 14px 14px auto; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }

/* ---------- accordion ---------- */
.acc { display: grid; gap: 10px; }
.acc__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc__item:has([aria-expanded="true"]) { border-color: var(--leaf); box-shadow: 0 12px 30px rgba(19, 38, 26, .08); }
.acc__h { font-family: var(--body); font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
.acc__q { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) { .acc__btn { padding: 18px 16px; gap: 12px; } .acc__h { font-size: 1.02rem; } }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; text-align: left; cursor: pointer; }
.acc__ico { align-self: flex-start; width: 26px; height: 26px; flex: none; position: relative; border-radius: var(--r-btn); background: var(--stone); }
.acc__ico::before, .acc__ico::after { content: ''; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; background: var(--forest); transition: transform .35s var(--ease); }
.acc__ico::after { transform: rotate(90deg); }
[aria-expanded="true"] .acc__ico { background: var(--leaf); }
[aria-expanded="true"] .acc__ico::after { transform: rotate(0); }
.acc__panel { padding: 0 22px 20px; color: var(--ink-soft); }
.acc__panel p { margin: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 12px; }
.form__title { font-size: 2rem; color: var(--forest); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--forest); }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(19, 38, 26, .22); border-radius: var(--r); background: #fff; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf-dark); box-shadow: 0 0 0 3px rgba(125, 186, 58, .35); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313261A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.form__send { justify-self: start; }
.form__small { margin: 0; font-size: .9rem; color: var(--ink-soft); }
form#enquiry-form.form[hidden] { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 12px 14px; border-radius: var(--r); font-weight: 600; }
.form__status--ok { background: #e5f3d6; color: #24440d; }
.form__status--err { background: #fbe3dc; color: #7a2410; }
#enquiry-form { scroll-margin-top: 110px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- range slider ---------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; --fill: 30%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--leaf) var(--fill), rgba(255, 255, 255, .25) var(--fill)); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--leaf); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--leaf); box-shadow: 0 4px 12px rgba(0, 0, 0, .3); transition: transform .2s; }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--leaf); }
.range--light::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--leaf-dark) var(--fill), rgba(19, 38, 26, .15) var(--fill)); }
.range--light::-moz-range-track { background: rgba(19, 38, 26, .15); }

/* ---------- fence drawing (planner) ---------- */
.fence-svg { width: 100%; height: auto; overflow: visible; }
.fence-svg .f-ground { stroke: rgba(255, 255, 255, .35); stroke-width: 2; fill: none; }
.fence-svg .f-grass { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; opacity: .8; }
.fence-svg .f-post { fill: #8a552a; stroke: #4a2c15; stroke-width: 1.5; }
.fence-svg .f-post-c { fill: #b8b5ad; stroke: #6f6c66; stroke-width: 1.5; }
.fence-svg .f-panel { fill: #c88a4c; stroke: #6b4020; stroke-width: 1.2; }
.fence-svg .f-board { fill: #c88a4c; stroke: #6b4020; stroke-width: .8; }
.fence-svg .f-rail { fill: #a8692f; stroke: #5a3519; stroke-width: 1; }
.fence-svg .f-line { fill: none; stroke: rgba(107, 64, 32, .55); stroke-width: 1; }
.fence-svg .f-gravel { fill: #9a9890; stroke: #5f5d57; stroke-width: 1; }
.fence-svg .f-gate { fill: #d79a58; stroke: #5a3519; stroke-width: 1.4; }
.fence-svg .f-dim { stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; fill: none; }
.fence-svg .f-dimtext { fill: #fff; font-family: var(--display); font-weight: 700; font-size: 22px; }
.fence-svg.is-light .f-ground, .fence-svg.is-light .f-dim { stroke: rgba(19, 38, 26, .45); }
.fence-svg.is-light .f-dimtext { fill: var(--forest); }

/* ---------- quote band ---------- */
.quote { position: relative; background: var(--leaf); color: var(--forest); padding: clamp(80px, 10vh, 110px) 0 80px; overflow: clip; }
.quote__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.quote .lede { color: #1f3a12; }
.quote__direct { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 32px; }
.quote__media { width: min(100%, 300px); aspect-ratio: 4 / 5; max-height: min(42vh, 380px); }
.quote__media::before { border-color: var(--forest); }
.quote__card { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 40px); border-radius: var(--r); box-shadow: 0 30px 70px rgba(19, 38, 26, .25); }
@media (max-width: 900px) {
  .quote { padding: 72px 0 64px; }
  .quote__in { grid-template-columns: 1fr; }
  .quote__media { display: none; }
  .quote__direct { margin-bottom: 0; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--forest-deep); color: rgba(255, 255, 255, .82); padding: 0 0 28px; overflow: clip; }
.footer-line { position: relative; height: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.footer-line i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--leaf) 30%, #d8f0b8 50%, var(--leaf) 70%, transparent); transform-origin: left; }
.motion .footer-line i { animation: foot-line 7s ease-in-out infinite; }
@keyframes foot-line { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.footer-marquee { padding-top: 34px; }
.footer-marquee { overflow: hidden; padding: 18px 0 8px; }
.footer-marquee__track { display: flex; width: max-content; }
.footer-marquee__track span { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: 1.1; padding-right: .5em; color: transparent; -webkit-text-stroke: 1.5px rgba(125, 186, 58, .45); }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.site-footer__grid::before { content: ''; position: absolute; left: 0; top: 0; width: 60%; height: 100%; background: radial-gradient(closest-side, rgba(125, 186, 58, .22), transparent); animation: foot-glow 7s ease-in-out infinite alternate; pointer-events: none; }
@keyframes foot-glow { from { transform: translateX(-10%); } to { transform: translateX(80%); } }
.site-footer__grid > * { position: relative; }
.f-brand img { width: 120px; height: 120px; margin-bottom: 18px; }
.f-brand p { max-width: 40ch; }
.f-h { font-size: 1.6rem; color: #fff; margin-bottom: 14px; }
.f-list li { padding: 0; }
.f-list a, .f-contact span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.f-list a:hover { color: var(--leaf-2); }
.f-contact .ico { color: var(--leaf); }
.f-col .btn { margin-top: 16px; }
.f-social { display: flex; flex-wrap: wrap; gap: 8px; }
.f-social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-btn); text-decoration: none; font-size: .92rem; transition: border-color .2s, color .2s; }
.f-social a:hover { border-color: var(--leaf); color: var(--leaf-2); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .95rem; }
.site-footer__base p { margin: 0; }
.site-footer__base a { color: var(--leaf-2); display: inline-block; padding: 12px 2px; margin: -12px 0; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- reveal start states (only while motion is on; no-JS and reduced motion show everything) ---------- */
.motion [data-reveal]:not([data-reveal="boards"]) { opacity: 0; transform: translateY(28px); }
.motion [data-reveal="boards"] { -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 var(--strip, 0%), transparent var(--strip, 0%) 12.5%); mask-image: repeating-linear-gradient(90deg, #000 0 var(--strip, 0%), transparent var(--strip, 0%) 12.5%); }
.motion [data-stagger] > * { opacity: 0; transform: translateY(24px); }
.motion [data-foot] { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 404 ---------- */
.lost { position: relative; background: var(--forest); color: #fff; padding: calc(var(--hdr) + 60px) 0 90px; min-height: 60vh; overflow: clip; }
.lost__tex { position: absolute; inset: 0 -60px 0 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 60px); animation: tex-drift-404 20s linear infinite; }
@keyframes tex-drift-404 { to { transform: translateX(-60px); } }
.lost__in { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.lost__title { font-size: clamp(3rem, 6vw, 5.4rem); line-height: .95; margin-bottom: .3em; }
.lost .lede { color: rgba(255, 255, 255, .85); }
.lost .lede a { color: var(--leaf-2); }
.lost__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lost__media { width: min(100%, 340px); aspect-ratio: 3 / 4; justify-self: center; }
@media (max-width: 800px) { .lost__in { grid-template-columns: 1fr; } .lost__media { width: min(100%, 260px); } }

/* inline links in copy get a taller tap area without moving the text */
.lede a, .areas__note a, .hold-note__more a { display: inline-block; padding: 11px 0; margin: -11px 0; }

/* the nav is right-aligned, so a font swap would shift it: hold it until the fonts are in (the 1.5 s safety net drops .motion) */
.motion:not(.fonts-in) .nav { opacity: 0; }
/* a slow band of light passes across the footer columns so the footer never sits completely still */
.site-footer__grid::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(125, 186, 58, .09) 45%, rgba(255, 255, 255, .06) 50%, transparent); animation: foot-sweep 6s linear infinite; pointer-events: none; }
@keyframes foot-sweep { from { transform: translateX(-110%); } to { transform: translateX(380%); } }

/* ---------- 3D fence model (assets/js/fence3d.js) ---------- */
.f3d { position: relative; aspect-ratio: 4 / 3; max-height: var(--media-cap); width: 100%; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, #eef3ea 0%, #dfe8d6 55%, #d3dccb 100%); touch-action: pan-y; }
.f3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f3d.is-3d .f3d__poster { display: none; } /* the live model fades in in its place */
.f3d.is-3d .f3d__canvas { animation: f3d-in .7s ease-out both; }
@keyframes f3d-in { from { opacity: 0; } }
.f3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.f3d.is-dragging .f3d__canvas { cursor: grabbing; }
.f3d__labels { position: absolute; inset: 0; pointer-events: none; }
.f3d__label { position: absolute; left: 0; top: 0; padding: 5px 10px 4px; background: rgba(19, 38, 26, .9); color: #fff; border-radius: var(--r-btn); font: 600 14px/1.1 var(--body); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: opacity .3s; }
.f3d__label b { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--leaf-2); margin-right: 4px; }
.f3d__hint { position: absolute; right: 12px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: var(--r-btn); background: rgba(255, 255, 255, .8); color: var(--forest); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .4s; pointer-events: none; }
.f3d.is-3d .f3d__hint { opacity: 1; }
@media (hover: none) { .f3d__hint { display: none; } }
.f3d__label--gate { background: var(--leaf); color: var(--forest); font-weight: 700; }
