/* Phoenix TMS: section layouts. Loaded after base.css on every page. */

/* --- hero: home ------------------------------------------------------- */
.hero{position:relative;overflow:hidden;padding-block:clamp(4rem,8.5vw,7.5rem) clamp(3rem,5.5vw,5.25rem)}
/* the lines stay faint under the headline and only come up to strength in the
   open space to its right, so they never compete with the type */
.hero-lines{
  position:absolute;top:0;bottom:0;right:0;left:auto;width:46%;height:100%;pointer-events:none;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 30%);
  mask-image:linear-gradient(to right,transparent 0%,#000 30%);
}
.hero-lines path{stroke:var(--line)}
.hero .shell{position:relative;z-index:1}
.hero h1{max-width:15ch}
.hero .lede{margin-top:clamp(1.4rem,2.6vw,2.1rem);max-width:33ch}
.hero .cta{margin-top:clamp(2rem,4vw,2.9rem)}

/* --- hero: interior pages --------------------------------------------- */
.pagehero{padding-block:clamp(3.5rem,7vw,6rem) clamp(2.5rem,5vw,4rem)}
.pagehero .eyebrow{margin-bottom:clamp(1rem,2vw,1.5rem)}
.pagehero h1{max-width:24ch}
.pagehero--product h1{font-size:clamp(3rem,2rem + 5vw,6rem);letter-spacing:-.03em}
/* product hero: name and subline left, the app screens facing them */
.pagehero--product .shell{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);
  gap:clamp(2rem,5vw,4.5rem);align-items:center;
}
.pagehero--product .shots--hero{margin-top:0}
.pagehero--product .pagehero-text .eyebrow{margin-bottom:clamp(1rem,2vw,1.5rem)}
.pagehero--product .shot{max-width:none}
.pagehero .lede{margin-top:clamp(1.1rem,2.2vw,1.7rem);max-width:34ch}
.pagehero .cta{margin-top:clamp(1.8rem,3.5vw,2.6rem)}

/* --- principles / story rows: label left, prose right ----------------- */
.rows{border-bottom:1px solid var(--accent-hair)}
.prow{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:clamp(.7rem,3vw,3.5rem);
  border-top:1px solid var(--accent-hair);
  padding-block:clamp(1.5rem,3vw,2.4rem);
}
.prow h3{font-size:clamp(1.3rem,1.1rem + .8vw,1.75rem);font-weight:250;color:var(--ox);max-width:20ch}
.prow p{color:var(--charcoal-soft);max-width:58ch}
[data-accent="sage"] .prow h3{color:var(--accent-ink)}

/* --- column sets: services, specialties, cards ------------------------ */
.cols{display:grid;gap:0;border-top:1px solid var(--accent-rule)}
.cols--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cols--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.col{
  padding:clamp(1.5rem,2.6vw,2.4rem) clamp(1.1rem,2.2vw,2rem);
  border-left:1px solid var(--accent-hair);
}
.col:first-child{border-left:0;padding-left:0}
.col:last-child{padding-right:0}
.col h3{color:var(--ox);margin-bottom:.7rem}
.col p{color:var(--charcoal-soft);font-size:.985rem}
[data-accent="sage"] .col h3{color:var(--accent-ink)}

.subhead{
  display:flex;align-items:baseline;gap:1rem;
  margin-top:clamp(2.6rem,5vw,4.2rem);margin-bottom:clamp(1.2rem,2vw,1.8rem);
}
.subhead h3{font-family:var(--mono);font-size:.69rem;font-weight:400;
  letter-spacing:.2em;text-transform:uppercase;color:var(--accent-ink)}
.subhead span{flex:1;height:1px;background:var(--accent-hair)}
.cols--small .col{padding-block:clamp(1.1rem,2vw,1.6rem)}
.cols--small h3{font-size:1.02rem;font-family:var(--body);font-weight:500;letter-spacing:0}
.cols--small p{font-size:.93rem}

/* tinted blocks: Studio's own texture */
.tiles{display:grid;gap:clamp(.9rem,1.6vw,1.3rem);grid-template-columns:repeat(3,minmax(0,1fr))}
.tile{
  background:var(--accent-wash);
  border-top:2px solid var(--accent);
  padding:clamp(1.5rem,2.6vw,2.3rem);
}
.tile h3{color:var(--accent-ink);margin-bottom:.7rem}
.tile p{color:var(--charcoal-soft);font-size:.985rem}

/* --- track record ----------------------------------------------------- */
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.fact{
  border-top:1px solid var(--accent-hair);
  padding:clamp(1.3rem,2.4vw,2rem) clamp(1.1rem,2.2vw,2rem) clamp(1.3rem,2.4vw,2rem) 0;
  display:grid;grid-template-columns:1.6rem 1fr;gap:.2rem;
}
.fact::before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);margin-top:.7em;
}
.fact p{max-width:46ch}
.fact:nth-child(even){padding-left:clamp(1.1rem,2.2vw,2rem);border-left:1px solid var(--accent-hair)}
.fact--lead p{font-family:var(--display);font-weight:250;
  font-size:clamp(1.3rem,1.1rem + .8vw,1.7rem);line-height:1.25;color:var(--ox)}

/* --- studio band ------------------------------------------------------ */
.studioband{background:#9CAF88;color:#2A2A2E}
.studioband .shell{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:clamp(1.4rem,3vw,2.5rem);padding-block:clamp(3rem,5.5vw,4.75rem);
}
.studioband h2{color:#2A2A2E;font-weight:200;max-width:16ch}
.studioband .btn{background:#2A2A2E;color:#F5EFE6}
.studioband .btn:hover{background:#17171a}

/* --- the one real sequence on the site: Studio's end-to-end path ------ */
.path{list-style:none;margin:clamp(1.8rem,3.5vw,2.8rem) 0 0;padding:0;
  display:flex;align-items:flex-start;gap:0}
.path li{
  flex:1;position:relative;padding-top:1.5rem;
  font-family:var(--mono);font-size:.74rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--charcoal-soft);
}
.path li::before{
  content:"";position:absolute;top:0;left:0;right:0;height:1px;background:var(--accent-rule);
}
.path li::after{
  content:"";position:absolute;top:-3.5px;left:0;width:8px;height:8px;
  border-radius:50%;background:var(--accent);
}
.path li + li{padding-left:1rem}
.path li:last-child::before{right:auto;width:100%}

/* --- products --------------------------------------------------------- */
.prods{display:grid;gap:clamp(1rem,1.8vw,1.5rem);grid-template-columns:repeat(2,minmax(0,1fr))}
.prod{
  display:flex;flex-direction:column;gap:.8rem;
  background:var(--accent-wash);border-top:2px solid var(--accent);
  padding:clamp(1.7rem,3vw,2.6rem);
}
.prod h3{font-size:clamp(1.5rem,1.2rem + 1.2vw,2.1rem);font-weight:250;color:var(--accent-ink)}
.prod p{color:var(--charcoal-soft);max-width:34ch}
.prod .inline{margin-top:auto;padding-top:1.4rem}

/* --- image placeholders for app screenshots --------------------------- */
.shots{display:flex;gap:clamp(.8rem,1.8vw,1.5rem);align-items:flex-end}
.shot{
  flex:1;aspect-ratio:9/18;max-width:280px;
  border:1px solid var(--accent-rule);border-radius:14px;
  background:var(--accent-wash);
  display:flex;align-items:center;justify-content:center;text-align:center;
  padding:1rem;
}
.shot span{
  font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--accent-ink);opacity:.85;
}
.shot--tall{aspect-ratio:9/19.5}
.shots--hero{margin-top:clamp(2.5rem,5vw,4rem)}
.shot--wide{aspect-ratio:16/10;max-width:none;border-radius:6px}

/* --- about / contact -------------------------------------------------- */
.about p{
  font-family:var(--display);font-weight:200;
  font-size:clamp(1.25rem,1.05rem + 1vw,1.85rem);
  line-height:1.42;letter-spacing:-.012em;max-width:40ch;
}
.contact{text-align:center;border-top:1px solid var(--accent-rule)}
.contact h2{margin-inline:auto;max-width:22ch;font-size:clamp(2rem,1.3rem + 3.3vw,3.9rem)}
.contact .btn{margin-top:clamp(1.9rem,3.5vw,2.7rem)}

.actions{display:flex;flex-wrap:wrap;gap:.8rem 1rem;align-items:center;
  margin-top:clamp(2rem,4vw,3rem)}
.contact .actions{justify-content:center}
/* .contact .btn carries the gap under a heading; inside a row the row owns it */
.contact .actions .btn{margin-top:0}
.actions--close{margin-top:0}
/* the product pages close on buttons alone, so the band does not need the
   breathing room a heading would want above it */
.contact--buttons{padding-block:clamp(3rem,5.5vw,5rem)}

/* the eyebrow doubles as the way back up to Studio on the product pages */
.eyebrow a{
  color:inherit;text-decoration:none;
  border-bottom:1px solid var(--accent-rule);padding-bottom:.18em;
  transition:border-color 200ms var(--ease);
}
.eyebrow a:hover{border-bottom-color:currentColor}

/* prose block under a heading, when the section is one statement not a list */
.statement p{color:var(--charcoal-soft);max-width:62ch}
.statement p + p{margin-top:1em}

/* --- responsive ------------------------------------------------------- */
@media (max-width:980px){
  .pagehero--product .shell{grid-template-columns:1fr}
  .pagehero--product .shots--hero{margin-top:clamp(2.5rem,5vw,4rem)}
  .pagehero--product .shot{max-width:260px}
  .cols--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cols--3 .col:nth-child(3){border-left:0;padding-left:0}
  .tiles{grid-template-columns:1fr}
  .path{flex-wrap:wrap}
  .path li{flex:1 1 44%}
}
@media (max-width:780px){
  /* narrow screens: the lines sit under the text instead of beside it */
  .hero-lines{
    position:relative;display:block;width:100%;height:150px;
    margin-top:clamp(1.5rem,6vw,2.5rem);
    -webkit-mask-image:none;mask-image:none;
  }
  .prow{grid-template-columns:1fr;gap:.6rem}
  .cols{grid-template-columns:1fr !important}
  .col{border-left:0;padding-inline:0;border-top:1px solid var(--accent-hair)}
  .col:first-child{border-top:0}
  .facts{grid-template-columns:1fr}
  .fact{padding-inline:0 !important;border-left:0 !important}
  .prods{grid-template-columns:1fr}
  /* the triptych stays a triptych: three narrow screens beat two and an orphan */
  .shots{gap:.55rem}
  .shot{flex:1 1 0;min-width:0;max-width:none;padding:.6rem;border-radius:10px}
  .shot span{font-size:.5rem;letter-spacing:.1em}
  .pagehero--product .shot{max-width:none}
  .path{display:grid;grid-template-columns:1fr;gap:0}
  .path li{padding:0 0 1.1rem 1.6rem}
  .path li + li{padding-left:1.6rem}
  .path li::before{top:0;bottom:0;left:3.5px;right:auto;width:1px;height:auto}
  .path li:last-child::before{height:8px}
  .path li::after{top:0;left:0}
  .studioband .shell{flex-direction:column;align-items:flex-start}
}

/* real screenshots in the shot frames */
.shot.has-img{padding:0;overflow:hidden;background:#fff}
.shot.has-img img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}

/* --- email line under contact button + footer link --- */
.contact-mail{margin-top:1.4rem;font-size:.95rem;color:var(--charcoal-soft)}
.contact-mail a,.foot a{color:inherit;text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.contact-mail a:hover,.foot a:hover{color:var(--charcoal)}
.foot a{white-space:nowrap}
