/* innuga.com · How it works · on top of tokens.css and site.css
   Chapters: Paper (title + before-and-after illustration) → White (the agents) → Sand (a month) → Paper (your data) → White (the team) → Ink (close).
   Every head is split: H2 on the left, its text on the right, so no row leaves half the screen empty. */


/* ===== title + before-and-after illustration ===== */
.h-hero { background: var(--paper); padding-top: clamp(56px, 6.6vw, 96px); padding-bottom: clamp(40px, 4.4vw, 64px); overflow-x: clip; } /* short tail: the agents chapter starts right under the illustration */
.h-h1 { grid-column: 1 / -1; font-size: clamp(2.5rem, 5.6vw, 5.25rem); line-height: 0.95; }
.nowrap { white-space: nowrap; }
.h-hero .intro { grid-column: 1 / 7; margin-top: var(--s-4); align-self: start; }
.h-hero .actions { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 14px; }

/* the illustration: the same person before and after the routine leaves their desk */
.h-art { grid-column: 7 / 13; margin: var(--s-3) 0 0; align-self: start; aspect-ratio: 1254 / 1000; overflow: hidden; background: var(--paper); }
/* the file's own margins are cropped top and bottom; darken melts its off-white ground into the Paper behind it (the figure carries Paper itself because the rise animation isolates it);
   the file's warm glow runs to its edges, so the edges are feathered to keep a box from showing */
.h-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; mix-blend-mode: darken;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); /* taste-skill-ignore: edge feather, not a visible gradient */
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); /* taste-skill-ignore: edge feather */
  mask-composite: intersect; }

@media (max-width: 960px) { .h-hero .intro { grid-column: 1 / 7; } .h-art { grid-column: 7 / 13; } }
@media (max-width: 700px) {
  .h-hero .intro, .h-art { grid-column: 1 / -1; }
  .h-art { margin-top: var(--s-4); }
}

/* ===== split heads ===== */
.agents .h2, .month .h2, .data .h2 { grid-column: 1 / 7; }
.split-r { grid-column: 8 / 13; align-self: end; }
@media (max-width: 860px) {
  .agents .h2, .month .h2, .data .h2, .split-r { grid-column: 1 / -1; }
  .split-r { margin-top: var(--s-3); }
}

/* ===== the agents ===== */
.agents { padding-top: clamp(64px, 6.6vw, 96px); } /* the second screen starts higher, close under the hero */
.ag-h3 { grid-column: 1 / -1; margin-top: var(--s-5); }
.ag-grid { grid-column: 1 / -1; list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ag-grid li { background: var(--paper); padding: var(--s-3); display: grid; gap: 10px; align-content: start; }
.ag-grid li::before { content: ""; width: 16px; height: 15px; background: var(--ink); margin-bottom: 6px;
  clip-path: polygon(47.3% 0, 52.7% 0, 100% 100%, 76.4% 100%, 50% 46%, 23.6% 100%, 0 100%); }
.ag-t { font: 800 1.375rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.agents .plate .chips { grid-column: 9 / 13; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .ag-grid { grid-template-columns: 1fr; }
  .agents .plate .chips { grid-column: 1 / -1; }
}

/* ===== a month: five steps, two Amber gates where nothing moves without the client ===== */
.mo-list { grid-column: 1 / -1; list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mo { background: var(--white); padding: var(--s-3); display: flex; flex-direction: column; gap: 10px; }
.mo-days { font: 500 0.9375rem/1.3 var(--font-text); letter-spacing: 0.01em; color: var(--stone); }
.mo-t { font: 800 1.5rem/1.1 var(--font-display); letter-spacing: -0.025em; }
.gate { margin-top: auto; background: var(--amber); padding: 14px 16px; font-weight: 500; line-height: 1.3; }
.gate .g-n { margin-bottom: 4px; font: 800 1.375rem/1.1 var(--font-display); letter-spacing: -0.02em; }
@media (max-width: 1100px) {
  .mo-list { grid-template-columns: 1fr; }
  .mo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .mo-days { grid-column: 1 / 3; padding-top: 6px; }
  .mo-t { grid-column: 3 / 6; }
  .mo-d { grid-column: 6 / 10; }
  .gate { grid-column: 10 / 13; grid-row: 1 / span 2; margin-top: 0; }
  .mo:not(:has(.gate)) .mo-d { grid-column: 6 / 13; } /* rows without a gate use the full width */
}
@media (max-width: 700px) {
  .mo { display: flex; }
  .gate { margin-top: 8px; }
}

/* ===== your data ===== */
.da-tiles { grid-column: 1 / -1; margin-top: var(--s-5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.da { background: var(--white); padding: var(--s-3); display: grid; gap: 10px; align-content: start; }
.da-t { font: 800 1.375rem/1.15 var(--font-display); letter-spacing: -0.02em; }
@media (max-width: 760px) { .da-tiles { grid-template-columns: 1fr; } }

/* ===== the team ===== */
.tm-text { grid-column: 1 / 7; align-self: center; display: grid; gap: var(--s-4); }
.tm-photo { grid-column: 8 / 13; margin: 0; display: grid; gap: 10px; }
.tm-photo .frame { overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; }
.tm-photo figcaption { font-size: var(--fs-caption); line-height: 1.4; color: var(--stone); }
.tm-photo figcaption a { color: inherit; }
@media (max-width: 860px) {
  .tm-text, .tm-photo { grid-column: 1 / -1; }
  .tm-photo { margin-top: var(--s-4); }
}

/* ===== close ===== */
.cta .h2 { font-size: clamp(2.25rem, 3.9vw, 3.5rem); line-height: 0.98; }

/* ===== motion ===== */
@media (prefers-reduced-motion: no-preference) {
  .js.io .gate { clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-in-out) 500ms; }
  .js.io .is-in .gate { clip-path: inset(0); }
}

@media (prefers-contrast: more) {
  .ag-grid li, .mo, .da { box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: contrast mode */
}
