/* ==========================================================================
   AMH & Co. Inc. — editorial atelier
   Display: Instrument Serif (large sizes only) · Body: Archivo (legibility)
   Built by CipherTronix. Self-contained.
   ========================================================================== */

:root {
  --display: "Instrument Serif", "Didot", Georgia, serif;
  --sans:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --bone:     #f5f2ed;
  --bone-2:   #ebe6de;
  --ink:      #14120f;
  --ink-2:    #221f1a;
  --body:     #3d3830;
  --muted:    #6d665b;
  --accent:   #7d6440;
  --accent-l: #c0a37a;
  --line:     #d8d2c7;
  --line-ink: rgba(245,242,237,.18);

  --maxw: 1320px;
  --gut:  clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.65,.05,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* display type is used LARGE only — body copy stays in the sans for legibility */
.d { font-family: var(--display); font-weight: 400; line-height: .96; letter-spacing: -.015em; color: var(--ink); }

.wrap { width: min(100% - (var(--gut) * 2), var(--maxw)); margin-inline: auto; }
.bleed { width: 100%; }
section { position: relative; }

/* small tracked label */
.lbl {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.lbl--ink { color: var(--accent-l); }

/* ---------- scroll progress ---------- */
.prog {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent); z-index: 90; pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80;
  padding: 1.35rem 0; transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(245,242,237,.9); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: .85rem 0; border-bottom-color: var(--line);
}
.nav.on-ink:not(.solid) { color: var(--bone); }
.nav.on-ink:not(.solid) .brand__sub { color: rgba(245,242,237,.6); }
.nav.on-ink:not(.solid) .burger span { background: var(--bone); }

.nav__in { display: flex; align-items: center; gap: 2rem; }
.brand__name { font-family: var(--display); font-size: 1.62rem; line-height: 1; letter-spacing: .01em; }
.brand__sub {
  display: block; margin-top: .3rem; font-size: .6rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.nav.solid .brand__name { font-size: 1.42rem; }

.nav__links { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  position: relative; padding: .55rem .85rem; font-size: .95rem; font-weight: 500;
}
.nav__links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .32rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--accent); }
.nav.on-ink:not(.solid) .nav__links a.is-active { color: var(--accent-l); }

.nav__cta {
  margin-left: .8rem; padding: .72rem 1.5rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--bone); }
.nav.on-ink:not(.solid) .nav__cta { color: var(--bone); }
.nav.on-ink:not(.solid) .nav__cta:hover { background: var(--bone); color: var(--ink); }
.nav__links a.nav__cta::after { display: none; }

.burger { margin-left: auto; display: none; width: 46px; height: 46px; }
.burger span { display: block; width: 24px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.nav.open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center;
    gap: .4rem; margin: 0; background: var(--ink); color: var(--bone);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav.open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-family: var(--display); font-size: 2.1rem; padding: .5rem 1rem; }
  .nav__links a::after { display: none; }
  .nav__links a.nav__cta {
    margin-top: 1.6rem; font-family: var(--sans); font-size: .8rem; color: var(--bone);
  }
  .nav.open .burger span { background: var(--bone); }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; background: var(--ink); color: var(--bone); overflow: hidden; }
.hero__bg { position: absolute; inset: -8% 0 -8%; opacity: .30; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__in { position: relative; padding: 9rem 0 5rem; }
.hero .lbl { display: block; margin-bottom: 1.8rem; }
.hero h1 { color: var(--bone); font-size: clamp(3.2rem, 12vw, 11rem); line-height: .88; }
.hero h1 .it { font-style: italic; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--line-ink);
}
.hero__meta p { max-width: 46ch; color: rgba(245,242,237,.78); font-size: 1.02rem; }
.hero__cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(245,242,237,.5);
  display: grid; justify-items: center; gap: .7rem;
}
.hero__cue i { display: block; width: 1px; height: 46px; background: linear-gradient(var(--accent-l), transparent); }

/* ---------- reveal primitives ---------- */
.r-up   { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.r-up.in{ opacity: 1; transform: none; }
/* The line mask clips at the content box, but the display face is set at
   line-height .88-.96 — shorter than its own em box — so glyphs overflow it
   at BOTH ends: descenders (g, y, p and the comma) off the bottom, and cap
   heights / ascenders off the top of the first line. Measured overflow was
   ~0.19em each way at 41.6px, so .22em of padding covers it with margin to
   spare; the negative margin cancels the padding again so layout is
   unchanged. The translate must clear (lineHeight x lines) + padding, hence
   135% rather than 105% — at 105% the descenders of the pre-reveal text
   peeked back through the bottom of the mask. */
.r-line { display: block; overflow: hidden; padding-block: .22em; margin-block: -.22em; }
.r-line > span { display: block; transform: translateY(135%); transition: transform 1s var(--ease); }
.r-line.in > span { transform: none; }
.r-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-io); }
.r-wipe.in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .r-up, .r-line > span, .r-wipe { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- statement ---------- */
.stmt { padding: clamp(5rem, 12vw, 10rem) 0; }
.stmt__t { font-size: clamp(1.9rem, 4.6vw, 4.1rem); max-width: 20ch; }
.stmt__b { margin-top: 2.6rem; max-width: 54ch; font-size: 1.1rem; }
.stmt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
@media (max-width: 900px) { .stmt__grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- pinned horizontal gallery ---------- */
.hscroll { position: relative; background: var(--bone-2); }
.hscroll__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(1rem, 3vw, 2.5rem); padding-inline: var(--gut); will-change: transform; }
.hpanel {
  position: relative; flex: none; width: clamp(260px, 34vw, 440px); height: min(72svh, 620px);
  background: var(--ink); color: var(--bone); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2.2rem;
}
.hpanel__tex { position: absolute; inset: 0; opacity: .3; }
.hpanel__tex svg { width: 100%; height: 100%; }
.hpanel__n { position: absolute; top: 1.6rem; left: 2.2rem; font-size: .7rem; letter-spacing: .2em; color: var(--accent-l); }
.hpanel h3 { position: relative; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--bone); }
.hpanel p { position: relative; margin-top: .9rem; font-size: .96rem; color: rgba(245,242,237,.72); max-width: 30ch; }
.hscroll__head { position: absolute; inset: auto auto 0 0; padding: 0 0 2.5rem var(--gut); z-index: 2; }

/* ---------- figures / numbers ---------- */
.figs { padding: clamp(5rem, 11vw, 9rem) 0; }
.figs__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.fig { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.fig b { display: block; font-family: var(--display); font-size: clamp(3rem, 7vw, 5.4rem); line-height: .9; color: var(--ink); }
.fig span { display: block; margin-top: .8rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- sticky index list ---------- */
.idx { padding: clamp(4rem, 10vw, 8rem) 0; background: var(--ink); color: rgba(245,242,237,.75); }
.idx__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .idx__grid { grid-template-columns: 1fr; } }
.idx__aside { position: sticky; top: 22vh; }
.idx__aside h2 { color: var(--bone); font-size: clamp(2rem, 4.4vw, 3.4rem); }
.idx__aside p { margin-top: 1.4rem; max-width: 34ch; color: rgba(245,242,237,.66); }
.idx__item { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 2rem 0; border-top: 1px solid var(--line-ink); }
.idx__item:last-child { border-bottom: 1px solid var(--line-ink); }
.idx__item i { font-style: normal; font-size: .72rem; letter-spacing: .16em; color: var(--accent-l); padding-top: .5rem; }
.idx__item h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--bone); }
.idx__item p { margin-top: .7rem; font-size: 1rem; color: rgba(245,242,237,.7); }

/* ---------- parallax texture band ---------- */
.band { position: relative; height: clamp(320px, 52vh, 560px); overflow: hidden; background: var(--ink); }
.band__tex { position: absolute; inset: -20% 0; opacity: .34; will-change: transform; }
.band__tex svg { width: 100%; height: 100%; }
.band__q {
  position: relative; height: 100%; display: grid; place-items: center; text-align: center; padding-inline: var(--gut);
}
.band__q p { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: 1.1; color: var(--bone); max-width: 24ch; }

/* ---------- marquee ---------- */
.mq { padding: 2.6rem 0; border-block: 1px solid var(--line); overflow: hidden; }
.mq__t { display: flex; gap: 4rem; width: max-content; animation: mqs 42s linear infinite; }
.mq:hover .mq__t { animation-play-state: paused; }
.mq span { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--muted); white-space: nowrap; transition: color .35s; }
.mq span:hover { color: var(--ink); }
@keyframes mqs { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq__t { animation: none; } }

/* ---------- editorial list (stores / labels) ---------- */
.elist { border-top: 1px solid var(--line); }
.erow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease), color .35s;
}
.erow:hover { padding-left: 1.2rem; color: var(--accent); }
.erow i { font-style: normal; font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.erow strong { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 400; color: var(--ink); }
.erow:hover strong { color: var(--accent); }
.erow em { font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- generic page head ---------- */
.phead { padding: clamp(8rem, 18vw, 13rem) 0 clamp(2.5rem, 6vw, 4.5rem); background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.phead__bg { position: absolute; inset: -10% 0; opacity: .22; }
.phead__bg svg { width: 100%; height: 100%; }
.phead__in { position: relative; }
.phead h1 { color: var(--bone); font-size: clamp(2.6rem, 8vw, 6.4rem); }
.phead p { margin-top: 1.8rem; max-width: 52ch; color: rgba(245,242,237,.74); font-size: 1.05rem; }

/* ---------- prose blocks ---------- */
.pros { padding: clamp(4rem, 9vw, 7rem) 0; }
.pros__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.pcard { border-top: 1px solid var(--line); padding-top: 1.7rem; }
.pcard i { font-style: normal; font-size: .72rem; letter-spacing: .16em; color: var(--accent); }
.pcard h3, .pcard h2 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1rem; color: var(--ink); }
.pcard p { margin-top: .9rem; font-size: 1rem; }

/* ---------- contact ---------- */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 900px) { .cgrid { grid-template-columns: 1fr; } }
.crow { padding: 1.7rem 0; border-top: 1px solid var(--line); }
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow h4, .crow h2 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.crow p { margin-top: .8rem; font-size: 1.08rem; color: var(--ink); }
.crow a { border-bottom: 1px solid var(--line); }
.crow a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- CTA ---------- */
.cta { padding: clamp(5rem, 12vw, 9rem) 0; background: var(--ink); color: var(--bone); text-align: center; position: relative; overflow: hidden; }
.cta__bg { position: absolute; inset: -10% 0; opacity: .2; }
.cta__bg svg { width: 100%; height: 100%; }
.cta__in { position: relative; }
.cta h2 { color: var(--bone); font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 1.8rem auto 0; max-width: 48ch; color: rgba(245,242,237,.72); }
.btn {
  display: inline-block; margin-top: 2.6rem; padding: 1.15rem 2.8rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--bone); color: var(--bone);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--bone); color: var(--ink); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--bone); }
.btnrow { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(245,242,237,.66); padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem; border-top: 1px solid var(--line-ink); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.6rem; }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr; gap: 2.2rem; } }
.foot__grid h5, .foot__grid h2 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-l); margin-bottom: 1.2rem; font-weight: 600; }
.foot ul { list-style: none; display: grid; gap: .6rem; }
.foot a:hover { color: var(--bone); }
.foot .brand__name { color: var(--bone); }
.foot__note {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.6rem; border-top: 1px solid var(--line-ink);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .76rem; letter-spacing: .06em;
}
.foot__note a { color: var(--accent-l); }
.foot__note a:hover { color: var(--bone); }

/* the inline <svg> holding the fabric <pattern> defs must occupy no space */

/* fabric pattern inks, tuned for the dark editorial panels */

/* on the light product figures the same patterns need ink, not bone */

::selection { background: var(--accent); color: var(--bone); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: .8rem 1.2rem; background: var(--ink); color: var(--bone); }

/* ---------- spacing utilities ----------
   These replace style="" attributes. The strict CSP (style-src 'self')
   blocks inline style ATTRIBUTES, so anything set that way silently
   never applies — margins simply vanish on the live site. */
.mt-sm { margin-top: .6rem; }
.mt-md { margin-top: 1.2rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.4rem; }
.foot__about { margin-top: 1.1rem; max-width: 38ch; }
.pros--tight { padding-top: 0; }
.pcard--fig { border: 0; padding: 0; }
.figframe { aspect-ratio: 4/5; overflow: hidden; background: var(--ink); }

/* ---------- photography ---------- */
/* Every decorative photo is an absolutely-positioned cover fill behind text.
   The scrim pseudo-element does the contrast work: the source photos are
   bone/oat and the type over them is bone, so without it the headlines
   disappear. Tuned per surface rather than globally. */
.imgfill {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
}

.hero { position: relative; }
.hero__bg { opacity: 1; }
.hero__bg img { opacity: .88; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,18,15,.88) 0%, rgba(20,18,15,.62) 38%, rgba(20,18,15,.14) 100%),
    linear-gradient(0deg, rgba(20,18,15,.62) 0%, rgba(20,18,15,0) 40%);
}
@media (max-width: 780px) {
  .hero__bg::after {
    background:
      linear-gradient(90deg, rgba(20,18,15,.92) 0%, rgba(20,18,15,.86) 100%),
      linear-gradient(0deg, rgba(20,18,15,.9) 0%, rgba(20,18,15,0) 55%);
  }
}

.hpanel__tex { opacity: 1; }
.hpanel__tex::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,18,15,.92) 0%, rgba(20,18,15,.42) 46%, rgba(20,18,15,.05) 100%);
}

.phead__bg { opacity: 1; }
.phead__bg img { opacity: .82; }
.phead__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,15,.86) 0%, rgba(20,18,15,.6) 55%, rgba(20,18,15,.34) 100%);
}

.band__tex { opacity: 1; }
.band__tex img { opacity: .9; }
.band__tex::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(62% 72% at 50% 50%, rgba(20,18,15,.74) 0%, rgba(20,18,15,.5) 100%);
}

.cta__bg { opacity: 1; }
.cta__bg img { opacity: .55; }
.cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,18,15,.86) 0%, rgba(20,18,15,.7) 100%);
}

/* construction swatches are the subject, not a backdrop — no scrim */
.figframe { position: relative; }
.figframe img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }
