/* Editorial stage compositions. Each layout uses the actual remaining viewport. */
.home-page .scene {
  --gap:clamp(12px,1.5cqw,28px);
  --sp:clamp(14px,3cqh,34px);
  --title:clamp(2.1rem,min(4.5cqw,8.5cqh),4.7rem);
}
.home-page h2,.home-page .section-heading h1,.about-copy h1 {
  font-size:var(--title);
}
.home-page .section-heading {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);
  align-items:end;
  gap:var(--gap);
  padding:var(--sp) var(--pad);
}
.section-heading .eyebrow {
  margin-bottom:.55em;
}
.section-heading>p {
  color:var(--muted);
  font-size:1rem;
  line-height:1.45;
  max-width:31ch;
  justify-self:end;
}
.hero {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  background:radial-gradient(ellipse at 0 100%,#211c37 0,transparent 57%),var(--bg);
}
.hero-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(14px,3.5cqh,40px);
  min-width:0;
  padding:var(--sp) var(--pad);
}
.hero h1 {
  font-size:clamp(2.6rem,min(5.8cqw,11.8cqh),6.1rem);
  line-height:1.03;
  letter-spacing:-.055em;
  max-width:10ch;
}
.hero h1 .gradient-text {
  display:block;
}
.status-dot {
  width:9px;
  height:9px;
  background:var(--green);
  border-radius:50%;
}
.hero-description {
  max-width:38ch;
  color:var(--muted);
  font-size:clamp(1rem,1.6cqw,1.4rem);
}
.hero-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:.84rem;
}
.hero-tags span {
  border:1px solid #474353;
  padding:.35em .75em;
  border-radius:3px;
}
.hero-visual {
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  min-width:0;
  min-height:0;
  background:#292627;
}
.hero-image {
  position:relative;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  min-height:0;
  overflow:hidden;
}
.hero-image>img {
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
  object-position:50% 22%;
}
.image-overlay {
  display:none;
}
.portrait-label {
  display:grid;
  gap:.16em;
  padding:clamp(14px,2.6cqh,28px) clamp(20px,3cqw,48px);
  background:#1a1a20;
  border-top:1px solid #49434c;
}
.portrait-label span {
  font-size:.72rem;
  font-weight:650;
  letter-spacing:.08em;
  color:var(--cyan);
}
.portrait-label strong {
  font-size:clamp(1.45rem,2.7cqw,2.6rem);
  line-height:1.15;
}
.portrait-label small {
  font-size:.93rem;
  color:var(--muted);
  line-height:1.35;
}
.portrait-index {
  position:absolute;
  right:12px;
  top:12px;
  padding:5px 9px;
  background:#111216bd;
  color:var(--text);
  font-size:.75rem;
}
.hero-visual figcaption,.about-portrait figcaption {
  display:flex;
  justify-content:space-between;
  gap:10px;
  background:#111216;
  padding:.65em 1.2em;
  font-size:.7rem;
  font-weight:650;
  color:var(--soft);
  letter-spacing:.06em;
}
.projects-section {
  background:#1a1b21;
}
.projects-section>.shell,.services-section>.shell,.process-section>.shell {
  display:grid;
  height:100%;
  min-height:100%;
  grid-template-rows:auto minmax(0,1fr) auto;
}
.project-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:2px;
  min-height:0;
}
.project-card {
  min-width:0;
  min-height:0;
  background:#22242c;
}
.project-card>a {
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  height:100%;
  min-height:0;
}
.project-media {
  position:relative;
  display:grid;
  place-items:center;
  min-height:0;
  overflow:hidden;
  background:#292929;
}
.project-media img {
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  transition:transform .2s;
}
.media-cherry {
  background:#403830;
}
.media-nutri {
  background:#d8d7d3;
}
.project-card a:hover img {
  transform:scale(1.025);
}
.project-index {
  position:absolute;
  top:14px;
  left:14px;
  background:#111216da;
  color:var(--text);
  font-weight:700;
  font-size:.8rem;
  padding:.35em .65em;
  border-radius:3px;
}
.project-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:clamp(12px,2.4cqh,30px) clamp(14px,2.2cqw,36px);
}
.project-caption>div {
  min-width:0;
}
.project-type {
  font-size:.76rem;
  color:var(--soft);
  font-weight:650;
  letter-spacing:.04em;
  margin-bottom:.3em;
}
.project-caption h3 {
  font-size:clamp(1.4rem,2.4cqw,2.3rem);
  overflow-wrap:anywhere;
}
.round-arrow {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:2.3rem;
  height:2.3rem;
  border:1px solid #666b79;
  border-radius:50%;
  font-size:1.2rem;
  color:var(--cyan);
}
.project-card a:hover .round-arrow {
  background:var(--cyan);
  color:var(--bg);
}
.project-bottom {
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--soft);
  font-size:.8rem;
  padding:.8em var(--pad);
}
.services-section {
  background:#15161b;
}
.services-section>.shell {
  grid-template-rows:auto minmax(0,1fr);
}
.services-layout {
  min-height:0;
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:2px;
  background:var(--line);
}
.service-list {
  display:grid;
  grid-template-rows:repeat(3,minmax(min-content,1fr));
  gap:2px;
  min-height:0;
}
.service {
  display:grid;
  grid-template-columns:2.6em minmax(0,1fr) 3.3em;
  align-items:center;
  gap:clamp(12px,1.5cqw,26px);
  background:#1b1d25;
  padding:clamp(14px,2.5cqh,30px) clamp(16px,2.8cqw,54px);
}
.service-number {
  color:var(--cyan);
  font-size:1.3rem;
  font-weight:700;
  align-self:start;
  line-height:1.2;
}
.service h3 {
  font-size:clamp(1.4rem,2.5cqw,2.4rem);
  margin-bottom:.3em;
}
.service p {
  font-size:1rem;
  color:var(--muted);
  max-width:35ch;
  line-height:1.45;
}
.service-icon {
  width:100%;
  height:auto;
  max-height:3.3em;
  color:var(--violet);
}
.social-showcase {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  min-height:0;
  gap:12px;
  background:#20222a;
  padding:clamp(12px,1.6cqw,28px);
}
.social-grid {
  min-height:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.social-grid a {
  min-width:0;
  min-height:0;
  display:grid;
  place-items:center;
  background:#14151b;
  overflow:hidden;
}
.social-grid img {
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
}
.social-showcase .small-note {
  font-size:.8rem;
}
.about-section {
  background:#191b23;
}
.about-grid {
  display:grid;
  grid-template-columns: .88fr 1.12fr;
  height:100%;
  min-height:100%;
  gap:0;
}
.about-portrait {
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  min-height:0;
  min-width:0;
  background:#332f2c;
}
.about-portrait img {
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  object-position:center;
}
.about-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(12px,3cqh,36px);
  padding:var(--sp) var(--pad);
  min-width:0;
  background:radial-gradient(ellipse at 100% 0%,#29223a,transparent 55%);
}
.about-copy>p:not(.eyebrow) {
  font-size:clamp(1rem,1.55cqw,1.35rem);
  line-height:1.55;
  color:var(--muted);
  max-width:43ch;
}
.about-copy .text-link {
  font-size:1rem;
}
.process-section {
  background:#12131a;
}
.process-section>.shell {
  grid-template-rows:auto minmax(0,1fr);
}
.process-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  margin:0;
  padding:0;
  list-style:none;
  gap:2px;
  min-height:0;
  background:var(--line);
}
.process-grid li {
  position:relative;
  display:grid;
  grid-template-columns:minmax(3.3em,.36fr) minmax(0,1fr);
  grid-template-rows:auto auto;
  align-content:center;
  column-gap:clamp(12px,2.6cqw,50px);
  row-gap:10px;
  padding:clamp(16px,3cqh,38px) var(--pad);
  min-height:0;
  min-width:0;
  background:linear-gradient(130deg,#26233a,#1b1d26 60%);
}
.process-grid li:nth-child(2n) {
  background:linear-gradient(130deg,#1c2e37,#1b1d26 60%);
}
.step-number {
  grid-row:1/3;
  align-self:center;
  font-size:clamp(2.7rem,min(7.5cqw,13cqh),7.4rem);
  font-weight:800;
  line-height:1;
  color:var(--violet);
  letter-spacing:-.06em;
  font-variant-numeric:tabular-nums;
}
.process-grid li:nth-child(2n) .step-number {
  color:var(--cyan);
}
.process-grid h3 {
  font-size:clamp(1.45rem,2.7cqw,2.6rem);
  align-self:end;
  overflow-wrap:anywhere;
}
.process-grid p {
  color:var(--muted);
  font-size:clamp(1rem,1.25cqw,1.2rem);
  max-width:36ch;
  line-height:1.45;
}
.manifesto {
  background:radial-gradient(ellipse at 15% 0%,#29213c,transparent 60%),radial-gradient(ellipse at 90% 100%,#142d3a,transparent 62%),#171820;
}
.manifesto>.shell {
  height:100%;
  min-height:100%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:var(--gap);
  padding:clamp(26px,7cqh,76px) var(--pad);
  justify-items:start;
  align-items:center;
}
.manifesto-brand {
  width:clamp(200px,27cqw,480px);
}
.manifesto blockquote {
  font-size:clamp(2.5rem,min(6.3cqw,10.3cqh),6.8rem);
  font-weight:750;
  line-height:1.1;
  letter-spacing:-.045em;
  max-width:22ch;
  position:relative;
}
.quote-mark {
  display:block;
  font-size:.75em;
  color:var(--cyan);
  line-height:.8;
  margin-bottom:.2em;
}
.manifesto .eyebrow {
  border-top:1px solid #55505f;
  padding-top:1em;
  width:100%;
}
.contact-section {
  background:#14151a;
}
.contact-grid {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  height:100%;
  min-height:100%;
  align-items:stretch;
  gap:2px;
  background:var(--line);
}
.contact-grid>div:first-child {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(14px,3.5cqh,38px);
  padding:var(--sp) var(--pad);
  background:radial-gradient(ellipse at 10% 0%,#29233b,transparent 65%),#15161b;
}
.contact-grid h2 {
  font-size:clamp(2.8rem,min(7cqw,13cqh),7rem);
  max-width:10ch;
}
.contact-grid>div:first-child>p:not(.eyebrow) {
  font-size:clamp(1rem,1.5cqw,1.4rem);
  color:var(--muted);
  max-width:34ch;
}
.contact-cta {
  align-self:flex-start;
}
.contact-links {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(14px,3cqh,28px);
  padding:var(--sp) var(--pad);
  background:linear-gradient(145deg,#20242e,#191b22);
}
.contact-links a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid #454955;
  background:#181b22;
  padding:clamp(18px,4cqh,42px) clamp(16px,2.6cqw,38px);
  border-radius:4px;
  min-width:0;
}
.contact-links a>div {
  min-width:0;
}
.contact-links a span {
  color:var(--cyan);
  font-size:1rem;
}
.contact-links a strong {
  display:block;
  font-size:clamp(1.25rem,2.5cqw,2.3rem);
  overflow-wrap:anywhere;
  line-height:1.2;
}
.contact-links a small {
  display:block;
  font-size:.78rem;
  letter-spacing:.08em;
  color:var(--soft);
  margin-bottom:.4em;
}
.contact-links a:hover {
  border-color:var(--cyan);
}
.contact-links .contact-logo {
  width:clamp(180px,22cqw,360px);
  margin:0 0 .3rem;
}
/* Tall stages, including Android desktop-site mode, use portrait compositions. */
@container stage (aspect-ratio < 1/1) {
  .home-page .scene {
    --sp:clamp(12px,2.5cqh,32px);
    --title:clamp(1.8rem,6cqw,4rem);
  }
  .home-page .section-heading {
    grid-template-columns:1fr;
    gap:8px;
  }
  .section-heading>p {
    justify-self:start;
    max-width:46ch;
  }
  .hero {
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(220px,1fr);
  }
  .hero-copy {
    gap:clamp(8px,1.5cqh,22px);
  }
  .hero h1 {
    font-size:clamp(2.3rem,8.4cqw,5rem);
    max-width:18ch;
  }
  .hero-description {
    font-size:1rem;
  }
  .hero-tags {
    display:none;
  }
  .hero-image>img {
    object-fit:contain;
    object-position:center;
  }
  .portrait-label {
    padding:.65em var(--pad);
  }
  .portrait-label strong {
    font-size:1.55rem;
  }
  .portrait-label small {
    font-size:.88rem;
  }
  .hero-visual figcaption {
    display:none;
  }
  .hero .button {
    min-height:44px;
    padding:.65em .8em;
    font-size:.86rem;
  }
  .project-grid {
    grid-template-columns:1fr;
    grid-template-rows:repeat(3,minmax(90px,1fr));
  }
  .project-card>a {
    grid-template-columns:54% minmax(0,1fr);
    grid-template-rows:1fr;
  }
  .project-caption {
    padding:12px;
    gap:8px;
  }
  .project-caption h3 {
    font-size:clamp(1.25rem,4.1cqw,2.6rem);
  }
  .project-type {
    font-size:.72rem;
    line-height:1.35;
  }
  .project-index {
    top:6px;
    left:6px;
  }
  .project-bottom span:last-child {
    display:none;
  }
  .round-arrow {
    width:1.85rem;
    height:1.85rem;
    font-size:1rem;
  }
  .services-layout {
    grid-template-columns:1fr;
    grid-template-rows:minmax(min-content,1.12fr) minmax(125px,.88fr);
  }
  .service {
    grid-template-columns:1.7em minmax(0,1fr) 2.25em;
    gap:10px;
    padding:clamp(8px,1.4cqh,18px) var(--pad);
  }
  .service-number {
    font-size:1rem;
  }
  .service h3 {
    font-size:1.25rem;
    margin-bottom:3px;
  }
  .service p {
    font-size:.92rem;
    max-width:none;
  }
  .social-showcase {
    padding:10px;
    gap:6px;
  }
  .social-showcase .small-note {
    display:none;
  }
  .about-grid {
    grid-template-columns:1fr;
    grid-template-rows:minmax(150px,1fr) auto;
  }
  .about-copy {
    gap:12px;
    padding:var(--sp) var(--pad);
  }
  .about-copy>p:not(.eyebrow) {
    font-size:1rem;
    max-width:46ch;
  }
  .about-portrait figcaption {
    display:none;
  }
  .process-grid {
    grid-template-columns:1fr;
    grid-template-rows:repeat(4,minmax(min-content,1fr));
  }
  .process-grid li {
    grid-template-columns:2.8em minmax(0,1fr);
    column-gap:14px;
    row-gap:4px;
    padding:clamp(10px,2cqh,24px) var(--pad);
  }
  .step-number {
    font-size:2.4rem;
  }
  .process-grid h3 {
    font-size:1.3rem;
  }
  .process-grid p {
    font-size:.93rem;
    max-width:none;
  }
  .manifesto>.shell {
    padding:clamp(24px,5cqh,64px) var(--pad);
  }
  .manifesto blockquote {
    font-size:clamp(2.25rem,8.7cqw,5.5rem);
    max-width:16ch;
  }
  .manifesto-brand {
    width:clamp(180px,55cqw,440px);
  }
  .contact-grid {
    grid-template-columns:1fr;
    grid-template-rows:1fr 1fr;
  }
  .contact-grid>div:first-child {
    gap:12px;
  }
  .contact-grid h2 {
    font-size:clamp(2.4rem,9cqw,5rem);
    max-width:17ch;
  }
  .contact-links {
    padding:var(--sp) var(--pad);
    gap:12px;
  }
  .contact-links a {
    padding:clamp(12px,2cqh,26px);
  }
  .contact-links a strong {
    font-size:1.35rem;
  }
  .contact-links .contact-logo {
    width:clamp(140px,38cqw,350px);
  }
}
@container stage (max-width:480px) {
  .hero-copy {
    gap:10px;
  }
  .hero h1 {
    font-size:clamp(2.1rem,8.1cqw,2.9rem);
  }
  .hero {
    grid-template-rows:auto minmax(160px,1fr);
  }
  .hero-description {
    font-size:.95rem;
  }
  .hero .eyebrow {
    font-size:.69rem;
  }
  .hero .actions {
    gap:7px;
  }
  .hero .button {
    font-size:.78rem;
    padding:8px 10px;
    min-height:42px;
  }
  .portrait-label span {
    font-size:.68rem;
  }
  .portrait-label small {
    font-size:.83rem;
  }
  .section-heading>p {
    font-size:.94rem;
  }
  .project-caption {
    padding:10px 8px;
  }
  .project-type {
    font-size:.65rem;
  }
  .project-caption h3 {
    font-size:1.12rem;
  }
  .round-arrow {
    width:1.65rem;
    height:1.65rem;
  }
  .service {
    grid-template-columns:1.4em minmax(0,1fr) 1.8em;
    gap:8px;
  }
  .service p,.process-grid p {
    font-size:.88rem;
  }
  .process-grid li {
    grid-template-columns:2.55em minmax(0,1fr);
    gap:6px 12px;
  }
  .step-number {
    font-size:2rem;
  }
  .process-grid h3 {
    font-size:1.2rem;
  }
  .about-copy {
    gap:8px;
  }
  .about-copy>p:not(.eyebrow) {
    font-size:.95rem;
    line-height:1.45;
  }
  .manifesto blockquote {
    font-size:clamp(2rem,8.5cqw,3rem);
  }
  .contact-links .contact-logo {
    display:none;
  }
}
@container stage (max-height:450px) {
  .hero,.about-grid {
    min-height:380px;
  }
  .projects-section>.shell,.services-section>.shell,.process-section>.shell {
    min-height:430px;
  }
  .manifesto>.shell,.contact-grid {
    min-height:380px;
  }
}
/* Taller portrait previews get larger editorial typography, not scaled desktop text. */
@container stage (min-width:701px) and (aspect-ratio < 1/1) {
  .hero h1 {
    font-size:clamp(3.3rem,8.5cqw,5rem);
  }
  .hero-description {
    font-size:1.16rem;
    max-width:41ch;
  }
  .project-caption {
    padding:24px;
  }
  .project-type {
    font-size:.84rem;
  }
  .service h3,.process-grid h3 {
    font-size:1.7rem;
  }
  .service p,.process-grid p {
    font-size:1.15rem;
  }
  .service {
    grid-template-columns:2em minmax(0,1fr) 3em;
  }
  .process-grid li {
    grid-template-columns:4.5em minmax(0,1fr);
    column-gap:24px;
    padding-block:26px;
  }
  .step-number {
    font-size:3.5rem;
  }
  .about-copy>p:not(.eyebrow) {
    font-size:1.15rem;
    max-width:48ch;
  }
  .contact-grid h2 {
    font-size:clamp(3rem,9cqw,5.5rem);
  }
  .contact-links a strong {
    font-size:1.7rem;
  }
  .contact-links a {
    padding:1.1em;
  }
}
@container stage (max-width:400px) and (max-height:580px) {
  .service {
    padding-block:7px;
  }
  .service p {
    font-size:.85rem;
    line-height:1.35;
  }
  .services-layout {
    grid-template-rows:minmax(min-content,1fr) minmax(110px,.65fr);
  }
  .section-heading {
    gap:5px;
  }
  .process-grid li {
    padding-block:8px;
  }
  .process-grid p {
    line-height:1.35;
  }
}
