/* PHOMI homepage — section-specific styles (ported from
   Design Refrence/sections.css, minus .nav + .footer which moved to styles.css). */

/* ─── HERO ─── */
.hero{
  position:relative;
  height:100vh;
  /* svh tracks the *small* viewport (address bar shown) so the bottom-aligned
     hero content isn't hidden behind mobile browser chrome on first paint.
     Falls back to the 100vh above where svh is unsupported. */
  height:100svh;
  min-height:680px;
  overflow:hidden;
  color:#fff;
  background:#222b2d;
}
.hero-bg{
  position:absolute;inset:-8% 0 -8% 0;
  will-change:transform;
}
.hero-bg::after{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(180deg, rgba(21,24,27,.55) 0%, rgba(21,24,27,.05) 30%, rgba(21,24,27,.0) 55%, rgba(21,24,27,.65) 100%);
  z-index:2;
}
/* When a real photo is loaded into the hero, darken more aggressively so
   the white h1, eyebrow, and CTAs read regardless of the photo's tonal
   range. Keeps the stronger top + bottom vignette and adds a constant
   ~25% darkening band across the middle. */
.hero-bg.has-photo::after{
  background:
    linear-gradient(180deg,
      rgba(15,20,25,.85) 0%,
      rgba(15,20,25,.55) 28%,
      rgba(15,20,25,.50) 55%,
      rgba(15,20,25,.90) 100%);
}
.hero-bg{
  background:
    linear-gradient(180deg, #4a4a44 0%, #2a2e30 100%);
}
.hero-bg .facade{
  position:absolute;inset:0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.0) 0 96px, rgba(0,0,0,.22) 96px 98px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 110px),
    linear-gradient(120deg, #8a7a62 0%, #5a5347 45%, #38393a 100%);
  filter:contrast(.95) saturate(.85);
  transform:scale(1.05);
}
.hero-bg .grain{
  position:absolute;inset:0;
  background:
    radial-gradient(120% 80% at 70% 30%, rgba(255,235,210,.18), transparent 60%),
    radial-gradient(80% 60% at 20% 80%, rgba(0,0,0,.35), transparent 70%);
  mix-blend-mode:overlay;
}
.hero-bg .noise{
  position:absolute;inset:0;
  opacity:.18;
  background-image:
    repeating-conic-gradient(rgba(255,255,255,.04) 0 .25deg, transparent .25deg .5deg);
  mix-blend-mode:soft-light;
}
.hero-bg .placeholder-tag{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-family:var(--f-mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.42);
  padding:8px 14px;border:1px dashed rgba(255,255,255,.25);border-radius:4px;
  z-index:3;
}
.hero-content{
  position:relative;z-index:5;
  height:100%;
  display:flex;flex-direction:column;
  justify-content:flex-end;
  gap:40px;
  padding-top:104px;
  padding-bottom:48px;
}
.hero-top{
  max-width:560px;
}
.hero-top .eyebrow{ color:rgba(255,255,255,.7); margin-bottom:18px }
.hero-top h1{
  font-family:var(--f-sans);
  font-weight:500;
  letter-spacing:-.02em;
  line-height:1.05;
  font-size:clamp(34px,3.4vw,52px);
  color:#fff;
}
.hero-top h1 em{
  font-family:var(--f-serif);font-style:italic;font-weight:400;
}
.hero-bottom{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:32px;
  flex-wrap:wrap;
}
.hero-bottom .scroll-hint{
  font-family:var(--f-mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.6);
  display:flex;align-items:center;gap:10px;
}
.hero-bottom .scroll-hint::after{
  content:"";width:48px;height:1px;background:rgba(255,255,255,.4);
}
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap }
.hero-meta{
  position:absolute;
  right:32px;top:50%;
  transform:translateY(-50%) rotate(90deg);
  transform-origin:right center;
  font-family:var(--f-mono);
  font-size:10.5px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(255,255,255,.42);
  z-index:5;
  white-space:nowrap;
}
@media (max-width:720px){
  .hero-meta{ display:none }
  .hero-content{ padding-top:88px; padding-bottom:32px }
}

/* ─── USP ─── */
.usp{
  padding:120px 0 100px;
  background:var(--paper);
}
.usp-head{
  display:grid;grid-template-columns:1.2fr 1fr;gap:48px;
  margin-bottom:64px;
  align-items:end;
}
.usp-head .meta{
  font-size:15px;color:var(--muted);
}
.usp-head .eyebrow,
.products-head .eyebrow,
.showcase-head .eyebrow,
.certs-head .eyebrow{ margin-bottom:14px; display:block }
.usp-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  border-top:1px solid var(--line);
}
.usp-card{
  padding:32px 28px 36px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  position:relative;
  background:var(--paper);
  transition:background .3s var(--easing);
}
.usp-card:last-child{ border-right:0 }
.usp-card:hover{ background:#fff }
.usp-card .num{
  font-family:var(--f-mono);
  font-size:11px;letter-spacing:.16em;
  color:var(--muted);
  margin-bottom:80px;
}
.usp-card .stat{
  font-family:var(--f-sans);
  font-weight:500;
  letter-spacing:-.03em;
  font-size:clamp(40px,3.6vw,56px);
  line-height:1;
  margin-bottom:14px;
}
.usp-card .stat em{
  font-family:var(--f-serif);font-style:italic;font-weight:400;
}
.usp-card .stat .unit{
  font-size:.4em;
  font-weight:500;
  font-family:var(--f-sans);
  letter-spacing:0;
  vertical-align:0.7em;
  margin-left:4px;
  font-style:normal;
  color:var(--muted);
}
.usp-card h3{
  font-size:17px;
  font-weight:500;
  margin-bottom:8px;
  letter-spacing:-.005em;
}
.usp-card p{
  font-size:14.5px;
  color:var(--muted);
  line-height:1.5;
}
.usp-card .ico{
  position:absolute;top:32px;right:28px;
  width:24px;height:24px;
  opacity:.6;
}
/* "Mis on econiclay?" deep-dive under the stat grid:
   sticky intro on the left, numbered fact list on the right. */
.econiclay{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:72px;
  margin-top:96px;
  padding-top:64px;
  border-top:1px solid var(--line);
}
.eco-intro{ position:sticky; top:96px; align-self:start }
.eco-intro .eyebrow{ display:block; margin-bottom:14px }
.eco-title{
  font-family:var(--f-sans);
  font-weight:500;
  letter-spacing:-.025em;
  line-height:1.04;
  font-size:clamp(28px,3vw,42px);
  color:var(--ink);
}
.eco-title em{
  font-family:var(--f-serif); font-style:italic; font-weight:400;
  color:var(--primary);
}
.eco-lede{
  margin-top:22px;
  font-size:15.5px;
  line-height:1.62;
  color:var(--muted);
  max-width:44ch;
}
.eco-facts-label{
  font-family:var(--f-mono);
  font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}
.eco-list{ list-style:none; margin:0; padding:0 }
.eco-fact{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:22px;
  padding:26px 0;
  border-top:1px solid var(--line);
}
.eco-fact:first-child{ border-top:0 }
.ef-num{
  font-family:var(--f-mono);
  font-size:12px; letter-spacing:.08em;
  color:var(--primary);
  padding-top:3px;
}
.ef-title{
  font-family:var(--f-sans);
  font-size:17px; font-weight:500;
  letter-spacing:-.005em;
  margin-bottom:8px;
  color:var(--ink);
}
.ef-body p{
  font-size:14.5px;
  line-height:1.55;
  color:var(--muted);
}
@media (max-width:900px){
  .econiclay{ grid-template-columns:1fr; gap:40px; margin-top:72px }
  .eco-intro{ position:static }
}
@media (max-width:1080px){
  .usp-grid{ grid-template-columns:repeat(2,1fr) }
  .usp-card:nth-child(2){ border-right:0 }
}
@media (max-width:600px){
  .usp-head{ grid-template-columns:1fr }
  .usp-grid{ grid-template-columns:1fr }
  .usp-card{ border-right:0 }
}

/* ─── PRODUCT BENTO ─── */
.products{
  padding:80px 0 120px;
  background:var(--stone);
}
.products-head{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:48px;
  align-items:end;
  margin-bottom:48px;
}
.products-head .meta{
  font-size:15px;color:var(--muted);
}
.bento{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-auto-rows:140px;
  gap:14px;
}
.tile{
  position:relative;
  overflow:hidden;
  border-radius:6px;
  cursor:pointer;
  transition:transform .5s var(--easing);
  /* Establish a size container so .tile-img--rotated can swap its
     width/height with cqh/cqw and cover the tile after rotation. */
  container-type:size;
}
.tile:hover{ transform:translateY(-3px) }
.tile .tile-img{
  position:absolute;inset:0;
  transition:transform .8s var(--easing);
}
img.tile-img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
}
/* Rotate portrait photos 90° to fit landscape tiles. The pre-rotation
   box is dimension-swapped (width = container height, height = container
   width) via container query units, so after rotation the visual box
   matches the tile exactly. Object-fit cover handles any residual aspect
   mismatch. */
img.tile-img.tile-img--rotated{
  position:absolute;
  /* Reset the inset:0 inherited from `.tile .tile-img` first, then
     center via top/left. width/height set by app.js sizeRotated() —
     they swap parent's width and height so the post-rotation box
     matches the parent. */
  top:auto; right:auto; bottom:auto; left:auto;
  top:50%; left:50%;
  transform:translate(-50%, -50%) rotate(90deg);
  transform-origin:center center;
}
/* Override the default `.tile:hover .tile-img { transform: scale(1.04) }`
   for rotated images — without this, the hover transform clobbers the
   rotation and the photo visually "unrotates" when the cursor enters. */
.tile:hover img.tile-img.tile-img--rotated{
  transform:translate(-50%, -50%) rotate(90deg) scale(1.04);
}
.tile:hover .tile-img{ transform:scale(1.04) }
.tile .tile-meta{
  position:absolute;
  left:18px;bottom:16px;right:18px;
  z-index:4;
  color:#fff;
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:12px;
}
.tile .tile-meta .name{
  font-family:var(--f-sans);
  font-weight:500;
  font-size:22px;
  letter-spacing:-.01em;
  line-height:1.1;
}
.tile .tile-meta .name em{
  font-family:var(--f-serif);font-style:italic;font-weight:400;
}
.tile .tile-meta .tag{
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  opacity:.8;margin-top:6px;
}
.tile .tile-meta .arrow-pill{
  width:42px;height:42px;border-radius:999px;
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
  border:.5px solid rgba(255,255,255,.3);
  display:grid;place-items:center;
  flex-shrink:0;
  transition:background .3s var(--easing);
}
.tile:hover .tile-meta .arrow-pill{ background:var(--primary); color:var(--ink) }
.tile::after{
  content:"";position:absolute;inset:0;z-index:2;
  background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6) 100%);
}
.tile .count{
  position:absolute;left:18px;top:16px;z-index:4;
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.14em;
  color:rgba(255,255,255,.8);
}

/* Bento positions */
.t-1{ grid-column:1 / span 6; grid-row:1 / span 4 }
.t-2{ grid-column:7 / span 6; grid-row:1 / span 2 }
.t-3{ grid-column:7 / span 3; grid-row:3 / span 2 }
.t-4{ grid-column:10 / span 3; grid-row:3 / span 2 }
.t-5{ grid-column:1 / span 6; grid-row:5 / span 2 }
.t-6{ grid-column:7 / span 6; grid-row:5 / span 2 }

@media (max-width:900px){
  .bento{ grid-auto-rows:120px; gap:10px }
  .t-1{ grid-column:1 / span 12; grid-row:auto / span 3 }
  .t-2{ grid-column:1 / span 12; grid-row:auto / span 2 }
  .t-3,.t-4{ grid-column:auto / span 6; grid-row:auto / span 2 }
  .t-5,.t-6{ grid-column:auto / span 12; grid-row:auto / span 2 }
  .products-head{ grid-template-columns:1fr; gap:18px }
}

/* ─── CERTIFICATIONS ─── */
.certs{
  background:var(--ink);
  color:#fff;
  padding:96px 0;
  position:relative;
  overflow:hidden;
}
.certs::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(119,199,208,.18), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(119,199,208,.08), transparent 60%);
}
.certs-inner{ position:relative;z-index:1 }
.certs-head{
  display:flex;justify-content:space-between;align-items:end;
  margin-bottom:56px;
  gap:32px;flex-wrap:wrap;
}
.certs-head h2{
  max-width:18ch;
}
.certs-head .eyebrow{ color:rgba(255,255,255,.6); margin-bottom:14px }
.certs-head p{ max-width:none; color:rgba(255,255,255,.7); font-size:15px; line-height:1.5 }
.certs-grid{
  display:grid;grid-template-columns:repeat(5,1fr);
  gap:1px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.12);
}
.certs-cell{
  background:var(--ink);
  padding:36px 28px;
  display:flex;flex-direction:column;gap:18px;
  position:relative;
}
.certs-cell .label{
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.certs-cell .stat{
  font-family:var(--f-sans);
  font-weight:400;
  letter-spacing:-.03em;
  font-size:clamp(36px,3.8vw,56px);
  line-height:1;
  color:#fff;
}
.certs-cell .stat .unit{ color:var(--primary); font-style:italic; font-family:var(--f-serif); font-weight:400 }
.certs-cell .sub{
  font-size:13.5px;color:rgba(255,255,255,.6);line-height:1.45;
  margin-top:auto;
}
.certs-cell .sgs-mark{
  width:62px;height:62px;border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  display:grid;place-items:center;
  font-family:var(--f-mono);font-size:11px;letter-spacing:.1em;
  color:var(--primary);
}
@media (max-width:1080px){
  .certs-grid{ grid-template-columns:repeat(2,1fr) }
}
@media (max-width:520px){
  .certs-grid{ grid-template-columns:1fr }
}

/* ─── SHOWCASE ─── */
.showcase{
  padding:120px 0;
  background:var(--paper);
}
.showcase-head{
  display:grid;grid-template-columns:1fr 1fr;gap:48px;
  margin-bottom:64px;
  align-items:end;
}
.showcase-head .lede{ font-size:15px; color:var(--muted); max-width:none }
.showcase-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-template-rows:300px 300px 400px;
  gap:18px;
}
.proj{
  position:relative;
  overflow:hidden;
  border-radius:6px;
  cursor:pointer;
}
.proj .proj-img{ position:absolute;inset:0;transition:transform .8s var(--easing) }
img.proj-img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
}
.proj:hover .proj-img{ transform:scale(1.03) }
.proj .proj-cap{
  position:absolute;left:0;right:0;bottom:0;
  z-index:3;
  padding:20px 22px;
  color:#fff;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}
.proj .proj-cap .where{
  font-family:var(--f-sans);
  font-weight:500;
  font-size:17px;
  letter-spacing:-.005em;
}
.proj .proj-cap .what{
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  opacity:.75;margin-top:4px;
}
.p-1{ grid-column:1 / span 7; grid-row:1 / span 2 }
.p-2{ grid-column:8 / span 5; grid-row:1 }
.p-3{ grid-column:8 / span 5; grid-row:2 }
.p-4{ grid-column:1 / span 12; grid-row:3 }

@media (max-width:900px){
  .showcase-head{ grid-template-columns:1fr; gap:16px }
  .showcase-grid{ grid-template-columns:1fr; grid-template-rows:none; grid-auto-rows:260px }
  .p-1,.p-2,.p-3,.p-4{ grid-column:1; grid-row:auto }
  .p-1{ grid-row:auto / span 2 }
}

/* ─── SHOWROOM CTA ─── */
.showroom{
  position:relative;
  min-height:640px;
  display:flex;align-items:flex-end;
  padding:96px 0 80px;
  color:#fff;
  overflow:hidden;
  background:#1f2628;
}
.showroom-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(70% 50% at 30% 40%, rgba(119,199,208,.18), transparent 65%),
    linear-gradient(160deg, #2b3236 0%, #14181a 100%);
}
.showroom-bg .grid-overlay{
  position:absolute;inset:0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 80px);
  mask-image:radial-gradient(120% 80% at 50% 70%, #000 30%, transparent 75%);
}
.showroom-bg .tag{
  position:absolute;left:50%;top:32%;transform:translate(-50%,-50%);
  font-family:var(--f-mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.32);
  padding:8px 14px;border:1px dashed rgba(255,255,255,.2);border-radius:4px;
}
.showroom-content{ position:relative;z-index:2;width:100% }
.showroom-grid{
  display:grid;grid-template-columns:1.4fr 1fr;gap:80px;align-items:end;
}
.showroom h2{ max-width:14ch; color:#fff; margin-bottom:24px }
.showroom h2 em{ color:var(--primary) }
.showroom .lede-light{
  color:rgba(255,255,255,.75);
  font-size:18px;line-height:1.5;
  max-width:42ch;
  margin-bottom:36px;
}
.showroom .cta-row{
  display:flex;gap:14px;flex-wrap:wrap;align-items:center;
}
.showroom .visit{
  background:var(--primary);color:var(--ink);
}
.showroom .visit:hover{ background:#fff; color:var(--ink) }
.showroom .meta-block{
  display:grid;grid-template-columns:1fr 1fr;gap:24px;
}
.showroom .meta-item .label{
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(255,255,255,.5);
  margin-bottom:8px;
}
.showroom .meta-item .val{
  font-size:17px;color:#fff;line-height:1.4;
}
.showroom .hours{
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.14);
  display:flex;gap:32px;flex-wrap:wrap;
  font-family:var(--f-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
@media (max-width:900px){
  .showroom-grid{ grid-template-columns:1fr; gap:40px }
}
