/* ------------------------------------------------------------------
   AO Design - home page only
   The pieces that exist nowhere else: the full height hero, the salon
   hang, the marble statement slabs and the closing panel. Everything
   shared with the rest of the site (the wall, glass, slab, chrome)
   lives in site.css, which loads first.
   ------------------------------------------------------------------ */

/* ---------- hero ---------- */
/* Round 3: centred on the screen, a little smaller, and short enough that
   "Our latest projects" follows straight on instead of after a screen of nothing. */
.hero{
  min-height:calc(70vh - 74px);
  display:grid; align-content:center; justify-items:center; text-align:center;
  gap:clamp(20px,2.6vw,34px);
  padding-block:clamp(44px,8vh,110px) clamp(12px,2vh,24px);
}
.hero__eyebrow{
  font-family:var(--mono); font-size:11px; letter-spacing:.22em; text-transform:uppercase;
  color:color-mix(in srgb, var(--ink) 72%, transparent); margin:0;
}
/* Round 2, Sep 2026: the client asked for a new line, a resize and a change
   of face. Set in Montserrat Light - the same geometric sans as his own
   wordmark - instead of the Newsreader serif, and stepped down from 124px so
   the longer sentence still lands as one block rather than a wall. */
.hero h1{
  font-family:var(--brand-vf); font-weight:300; margin:0;
  font-size:clamp(31px,5.2vw,74px); line-height:1.04; letter-spacing:-.03em;
  color:var(--ink-strong); max-width:15ch;
  text-shadow:0 2px 40px rgba(0,0,0,.55);
}
.hero__foot{
  display:grid; gap:clamp(16px,2vw,30px); grid-template-columns:1fr; align-items:end;
}
/* the round-2 lede is roughly twice the old one, so the copy column widens */
.hero__foot{ max-width:62ch; justify-items:center }
.hero__lede{
  margin:0; font-size:clamp(15px,1.2vw,18px); line-height:1.65;
  color:color-mix(in srgb, var(--ink) 86%, transparent);
}

/* ---------- the salon hang ---------- */
.hang{ padding-block:clamp(8px,1.6vw,24px) clamp(48px,7vw,110px) }
.hang__head{ display:grid; gap:14px; margin-bottom:clamp(24px,3vw,46px); max-width:62ch }
.hang h2{
  font-family:var(--serif); font-weight:400; margin:0;
  font-size:clamp(28px,3.6vw,52px); line-height:1.08; letter-spacing:-.02em; color:var(--ink-strong);
}

/* A deliberate, uneven hang that still tiles across six columns.
   Dense flow is the insurance against a stray hole. */
.hang__grid{
  display:grid; gap:clamp(8px,1vw,16px);
  grid-template-columns:repeat(6,1fr);
  grid-auto-rows:clamp(90px,11vw,150px);
  grid-auto-flow:dense;
}
.hang__cell{ position:relative; overflow:hidden; margin:0; background:var(--ground-deep) }
.hang__cell img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .8s cubic-bezier(.4,.05,.2,1);
}
@media(hover:hover){ .hang__cell:hover img{ transform:scale(1.05) } }
.hang__cell figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:30px 18px 15px;
  background:linear-gradient(0deg, rgba(10,9,8,.88) 0%, rgba(10,9,8,0) 100%);
  /* round 3: slightly bigger, client ask (was 9.5px) */
  font-family:var(--mono); font-size:clamp(11.5px,1vw,13.5px); letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.92);
}
/* Round 2: the bands are cut to the shape of the photographs Ali sent, not
   the other way round. Four landscape shots sit in 3-column pairs (1.33) and
   six portrait shots in 2-column triplets (0.87), so nothing is cropped
   against its own frame. Wide pair, portrait triplet, wide pair, portrait
   triplet - every band still adds up to the six columns. */
.hang__cell:nth-child(1){ grid-column:span 3; grid-row:span 3 }
.hang__cell:nth-child(2){ grid-column:span 3; grid-row:span 3 }
.hang__cell:nth-child(3){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(4){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(5){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(6){ grid-column:span 3; grid-row:span 3 }
.hang__cell:nth-child(7){ grid-column:span 3; grid-row:span 3 }
.hang__cell:nth-child(8){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(9){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(10){ grid-column:span 2; grid-row:span 3 }
/* Round 5 (19 Oct 2026): five more photos, the same wide pair + triplet band */
.hang__cell:nth-child(11){ grid-column:span 3; grid-row:span 3 }
.hang__cell:nth-child(12){ grid-column:span 3; grid-row:span 3 }
.hang__cell:nth-child(13){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(14){ grid-column:span 2; grid-row:span 3 }
.hang__cell:nth-child(15){ grid-column:span 2; grid-row:span 3 }
@media(max-width:900px){
  .hang__grid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:clamp(110px,26vw,170px) }
  /* portraits take one column and stand tall; the four landscapes go full
     width and shorter, so neither shape is squashed on a phone */
  .hang__cell:nth-child(n){ grid-column:span 1; grid-row:span 2 }
  .hang__cell:nth-child(1),
  .hang__cell:nth-child(2),
  .hang__cell:nth-child(6),
  .hang__cell:nth-child(7),
  .hang__cell:nth-child(11),
  .hang__cell:nth-child(12),
  .hang__cell:nth-child(15){ grid-column:span 2; grid-row:span 2 }
}

/* ---------- the Instagram feed ----------
   Sits under the reviews. The handle and the line above it, then the posts
   running right to left across the full width of the page, past the gutter on
   both sides. Nine of the tiles are the real grid off instagram.com/aodesignau
   and six are square crops of AO's own photographs. */
/* round 3: sits right under the reviews, no gap */
.feed{ margin-block:clamp(10px,1.4vw,20px) clamp(28px,3.5vw,52px) }
.feed__head{ display:grid; gap:12px; align-content:center; max-width:62ch; margin-bottom:clamp(4px,1vw,10px) }
.feed__at{
  font-family:var(--brand-vf); font-weight:300; margin:0;
  font-size:clamp(30px,3.6vw,54px); line-height:1.02; letter-spacing:-.035em; color:var(--ink-strong);
  display:flex; align-items:center; gap:.32em;
}
/* round 3: the Instagram icon to the right of the handle */
.feed__ig{ display:inline-grid; place-items:center; color:var(--ink-strong); transition:opacity .25s ease }
.feed__ig svg{ width:.8em; height:.8em; display:block }
.feed__ig:hover{ opacity:.7 }
.feed__note{ margin:0; font-size:15px; line-height:1.62; color:color-mix(in srgb, var(--ink) 78%, transparent) }
.feed__tile{
  aspect-ratio:1; margin:0; overflow:hidden; display:block;
  background:var(--ground-deep);
  border:1px solid var(--panel-line);
}
.feed__tile img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .8s cubic-bezier(.4,.05,.2,1);
}
@media(hover:hover){ .feed__tile:hover img{ transform:scale(1.06) } }

/* ---------- the marquee ----------
   Two of these on the home page: the reviews, and the Instagram posts running
   the other way underneath them. The track holds its content twice - the
   second copy is aria-hidden and untabbable - so js/marquee.js can wrap the
   scroll position by exactly one set and the loop is seamless both ways.

   Motion stops on hover, on keyboard focus anywhere inside, and on the Pause
   button. The button is not a nicety: WCAG 2.2.2 requires a way to stop
   anything that moves by itself for more than five seconds.
   It can always be scrolled by hand. Under prefers-reduced-motion it never
   drifts by itself. ------------------------------------------- */
.marq{
  position:relative;
  /* both edges bleed past the page gutter */
  margin-inline:calc(var(--gut) * -1);
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  /* round 5: a real sideways scroller, drifted along by js/marquee.js, so it can be
     dragged, swiped or trackpad scrolled as well as paused */
  overflow-x:auto; overflow-y:hidden; scrollbar-width:none; overscroll-behavior-x:contain;
  cursor:grab;
}
.marq::-webkit-scrollbar{ display:none }
.marq.is-drag{ cursor:grabbing; user-select:none }
.marq.is-drag a{ pointer-events:none }
/* The spacing is a margin on each item, NOT flex gap. A gap is only drawn
   BETWEEN children, so it is missing between the end of the first set and the
   start of the second - which makes half the track 9px narrower than one set,
   and the -50% loop lands slightly off and visibly jumps. A trailing margin on
   every item makes the two halves exactly equal. */
.marq__track{
  display:flex; align-items:stretch; gap:0;
  width:max-content; margin:0; padding:clamp(10px,1.4vw,20px) 0; list-style:none;
}
.marq__track > *{ margin-inline-end:clamp(10px,1.2vw,18px) }

.marq__pause{
  margin-top:clamp(10px,1.4vw,18px); margin-inline-start:0;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--quiet); background:none; border:0; border-bottom:1px solid var(--rule);
  padding:7px 2px; cursor:pointer; transition:color .25s ease, border-color .25s ease;
}
.marq__pause:hover{ color:var(--ink-strong); border-bottom-color:var(--ink-strong) }
.marq__pause:focus-visible{ outline:2px solid var(--vein); outline-offset:3px }
.marq__pause .marq__pause-off{ display:none }
.marq__pause[aria-pressed="true"] .marq__pause-on{ display:none }
.marq__pause[aria-pressed="true"] .marq__pause-off{ display:inline }

@media (prefers-reduced-motion:reduce){
  .marq__pause{ display:none }
}

/* ---------- reviews ---------- */
.revs{ margin-block:clamp(44px,6vw,96px) clamp(10px,1.4vw,20px) }
.revs__head{
  display:grid; gap:14px; align-items:end; margin-bottom:clamp(4px,1vw,12px);
  grid-template-columns:1fr;
}
@media(min-width:820px){ .revs__head{ grid-template-columns:minmax(0,1fr) auto } }
.revs__h{
  font-family:var(--serif); font-weight:400; margin:10px 0 0;
  font-size:clamp(26px,3.2vw,46px); line-height:1.08; letter-spacing:-.02em;
  color:var(--ink-strong);
}
/* the placeholder flag. Delete this rule and its markup with the sample copy. */
.revs__flag{
  margin:0; justify-self:start; align-self:end;
  font-family:var(--mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--vein); border:1px solid color-mix(in srgb, var(--vein) 45%, transparent);
  padding:6px 10px; border-radius:999px; white-space:nowrap;
}
@media(min-width:820px){ .revs__flag{ justify-self:end } }

/* .revs__track carries no rules of its own; it is a hook so the reviews track
   can be told apart from the Instagram one in script and in a future tweak. */
.rev{
  flex:0 0 clamp(258px,25vw,360px);
  /* stars, then the quote taking the slack, then the name pinned to the
     bottom - so every card's attribution sits on the same line however long
     the review is */
  display:grid; gap:14px; grid-template-rows:auto 1fr auto;
  padding:clamp(22px,2.2vw,30px);
}
.rev__stars{ color:var(--vein); font-size:14px; letter-spacing:.22em; line-height:1 }
.rev__t{
  margin:0; font-size:15px; line-height:1.62;
  color:color-mix(in srgb, var(--ink) 84%, transparent);
}
/* The name leads, the suburb sits under it. Both have to clear 4.5:1 at 10px,
   so the suburb uses --quiet rather than anything fainter. */
.rev__by{
  margin:0; font-family:var(--mono); font-size:10px; letter-spacing:.16em;
  text-transform:uppercase; display:grid; gap:3px;
  color:color-mix(in srgb, var(--ink) 88%, transparent);
}
.rev__by span{ color:var(--quiet) }
/* visually hidden, still read out */
.rev__sr{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
}

/* the Instagram track reuses .feed__tile, it just has to stop shrinking */
/* Round 3: every tile the same size and on one level. The client called the
   staggered, mixed-height strip a wobbly mess, so the stagger is gone and the
   tiles no longer stretch to the track. */
.feed__track{ align-items:flex-start }
.feed__track .feed__tile{ flex:0 0 auto; width:clamp(148px,19vw,250px); height:clamp(148px,19vw,250px); aspect-ratio:auto }
/* The stagger has to repeat with the set, not with the track. There are 15
   tiles per set and the track holds two sets, so an even/odd rule would put
   tile 1 level and tile 16 dropped - a visible step every time the loop comes
   round. A period of 3 divides 15, so both sets stagger identically. */


/* ---------- closing ---------- */
/* Round 3: one centred column, client ask. */
.cta{
  margin-top:clamp(14px,2vw,26px); padding:clamp(30px,4vw,64px);
  display:grid; gap:18px; justify-items:center; text-align:center;
}
.cta > div{ max-width:52ch }
.cta .links{ justify-content:center; margin:0 }
.cta h2{
  font-family:var(--serif); font-weight:400; margin:0; color:var(--ink-strong);
  font-size:clamp(26px,3.4vw,48px); line-height:1.1; letter-spacing:-.02em;
}
.cta p{ margin:0 0 22px; color:color-mix(in srgb, var(--ink) 82%, transparent); font-size:15.5px; line-height:1.65 }

