/* 01 About — a white editorial sheet laid over the room. One 12-column grid, one vertical rule after column 4.
   Display type: Antonio (heavy, condensed, uppercase); text and labels: Inter. Motion lives in about.js / ig-phone.js. */
.sw-about {
  --paper: #ffffff; --ink: #051727; --ink2: rgba(5, 23, 39, .68); --line: rgba(5, 23, 39, .16); --accent: #1f52f6;
  --m: clamp(20px, 7vw, 150px); --g: clamp(10px, 1.2vw, 20px);
  --col: calc((100% - 2 * var(--m) - 11 * var(--g)) / 12);
  --rule: calc(var(--m) + 4 * var(--col) + 3.5 * var(--g));
  --display: Antonio, "Arial Narrow", Impact, sans-serif;
  position: relative; z-index: 6; background: var(--paper); color: var(--ink);
  font: 400 16px/1.45 Inter, "Segoe UI", sans-serif;
  border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .4);
}
.sw-about::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule); width: 1px; background: var(--line); pointer-events: none; z-index: 2; }
.sw-about ::selection { background: var(--accent); color: #fff; }
.sw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: 0 var(--m); }

/* labels */
.sw-label { margin: 0; font: 500 clamp(12px, .85vw, 15px)/1.3 Inter, "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.sw-label span { color: var(--ink); }
.sw-head { margin-bottom: clamp(28px, 4vw, 64px); }
.sw-head > :first-child { grid-column: 1 / 5; }
.sw-head .sw-r { grid-column: 5 / -1; padding-left: calc(var(--g) / 2 + 12px); }

/* huge display lines placed on grid columns (staggered) */
.sw-big { margin: 0; font: 700 clamp(64px, 9.4vw, 190px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.sw-big .ln { line-height: .86; }
.sw-big .ln, .sw-quote .ln { display: block; grid-column: 1 / -1; white-space: nowrap; will-change: transform; }
.c1 { grid-column: 1 / -1 !important; } .c2 { grid-column: 2 / -1 !important; } .c3 { grid-column: 3 / -1 !important; }
.c5 { grid-column: 5 / -1 !important; padding-left: calc(var(--g) / 2 + 12px); }

/* the greeting stays pinned while the rest slides up over it */
.sw-hero { height: 165vh; margin-bottom: -65vh; }
.sw-hero-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.sw-hero-in .sw-head { margin-bottom: clamp(24px, 3vw, 48px); }
.sw-hero-in .sw-big { position: relative; z-index: 1; }

/* Instagram phone (ig-phone.js) */
.sw-ig { position: absolute; z-index: 2; right: calc(var(--m) - 2vw); top: 9vh; bottom: 4vh; width: 36vw; max-width: 640px; margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.ig-stage { position: relative; display: block; min-height: 0; cursor: pointer; }
.ig-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ig-tag { position: absolute; right: 12%; top: 0; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 10px; border-radius: 40px; background: #d0e8ff; color: var(--ink); font: 500 13px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(5, 23, 39, .18); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s; animation: tag-bob 4s ease-in-out infinite; }
.ig-tag .ico { width: 14px; height: 14px; }
.ig-stage:hover .ig-tag { background: #fff; transform: translateY(-3px); }
@keyframes tag-bob { 50% { translate: 0 -6px; } }
.sw-ig figcaption { display: flex; justify-content: flex-end; gap: 14px; align-items: baseline; padding-right: 6%; }
.ig-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 17px; border-bottom: 1px solid currentColor; }
.ig-link .ico { width: 14px; height: 14px; }
.ig-link:hover { color: var(--accent); }

/* the sheet that slides over the greeting */
.sw-rest { position: relative; z-index: 3; padding: clamp(60px, 8vw, 140px) 0 clamp(56px, 6vw, 110px); background: linear-gradient(var(--line), var(--line)) var(--rule) 0 / 1px 100% no-repeat, var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -24px 60px rgba(5, 23, 39, .08); }
.sw-intro { margin-top: clamp(20px, 3vw, 50px); align-items: center; }
.sw-photo { grid-column: 1 / 5; margin: 0 calc(var(--g) / 2 + 12px); border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: var(--accent); }
.sw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.sw-photo.in img { transform: none; }
.sw-lead { grid-column: 5 / -1; align-self: center; margin: 0; padding-left: calc(var(--g) / 2 + 12px); font: 400 clamp(26px, 3.1vw, 58px)/1.2 Inter, "Segoe UI", sans-serif; letter-spacing: -.02em; }
.sw-lead .dim { color: var(--ink2); }
/* small flat symbols between the words — each its own shape */
.tile { --r: -6deg; display: inline-grid; place-items: center; width: 1.12em; height: 1.12em; margin: 0 .08em; vertical-align: -.2em; position: relative; rotate: var(--r); transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1); }
.tile svg { width: 64%; height: 64%; display: block; }
.ic-target { background: #3b0de7; border-radius: 50%; }
.ic-web { background: #1989fe; border-radius: .22em; width: 1.4em; --r: 4deg; }
.ic-web svg { width: 74%; }
.ic-chart { background: #1f52f6; border-radius: 32%; --r: -4deg; }
.ic-growth { background: #97cafc; clip-path: polygon(50% 0, 61% 11%, 77% 6%, 82% 22%, 98% 27%, 93% 43%, 100% 56%, 89% 66%, 91% 82%, 75% 84%, 66% 98%, 51% 91%, 36% 99%, 26% 85%, 10% 84%, 11% 67%, 0 57%, 6% 43%, 1% 27%, 17% 22%, 22% 6%, 39% 11%); --r: 8deg; }
.tile:hover { rotate: 0deg; scale: 1.18; }

/* stats rows */
.sw-stats { list-style: none; margin: clamp(56px, 7vw, 120px) 0 0; padding: 0; }
.sw-stats li { align-items: end; border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: 6px; }
.sw-num { grid-column: 1 / 5; text-align: right; padding-right: calc(var(--g) / 2 + 12px); font: 700 clamp(80px, 11vw, 210px)/.92 var(--display); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.sw-num i { font-style: normal; }
.sw-stats .sw-label { grid-column: 5 / -1; padding: 0 0 .9em calc(var(--g) / 2 + 12px); font-size: 14px; color: var(--ink); }

/* closing quote, staggered over the grid */
.sw-quote { margin: clamp(80px, 10vw, 180px) 0 0; font: 700 clamp(72px, 11vw, 210px)/.92 var(--display); text-transform: uppercase; }
.sw-quote .ln { line-height: .88; }

/* motion (about.js adds .js-motion): words come out of a blur, rows slide up and their rules draw from the left */
.js-motion [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; }
.js-motion [data-split] .w > span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.45em) scale(1.04); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), filter .9s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 55ms); }
.js-motion [data-split].in .w > span { opacity: 1; filter: blur(0); transform: none; }
.js-motion [data-split] .w-tile { display: inline-block; }
.js-motion [data-split] .w-tile > .tile { opacity: 0; transform: scale(.2) rotate(-25deg); transition: opacity .4s, transform .9s cubic-bezier(.3, 1.6, .5, 1), rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 55ms + 120ms); }
.js-motion [data-split].in .w-tile > .tile { opacity: 1; transform: none; animation: tile-bob 4s ease-in-out calc(var(--i) * -.6s) infinite; }
@keyframes tile-bob { 50% { translate: 0 -.08em; } }
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), background-size 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.js-motion .sw-stats li[data-reveal] { border-top-color: transparent; background: linear-gradient(var(--line), var(--line)) top left / 0 1px no-repeat; }
.js-motion .sw-stats li[data-reveal].in { background-size: 100% 1px; }

/* header: drawn in "difference" so it stays readable on the dark room and on the white sheet */
body.past-story .top { mix-blend-mode: difference; }

@media (max-width: 800px) {
  .sw-about { --rule: calc(var(--m) + 6px); }
  .sw-head > :first-child, .sw-head .sw-r { grid-column: 1 / -1; padding-left: 0; }
  .sw-head .sw-r { margin-top: 6px; }
  .c5, .c3, .c2 { grid-column: 1 / -1 !important; padding-left: 0; }
  .sw-big .ln { white-space: normal; }
  .sw-big { font-size: clamp(52px, 15.5vw, 110px); }
  .sw-big .c5 { padding-left: 14vw; } .sw-big .c3 { padding-left: 8vw; }
  .sw-hero { height: auto; margin-bottom: 0; padding-top: 110px; }
  .sw-hero-in { position: relative; height: auto; display: block; }
  .sw-ig { position: relative; right: auto; top: auto; bottom: auto; width: auto; max-width: none; height: 70vh; margin: 24px var(--m) 0; }
  .ig-tag { right: auto; left: 50%; top: 58%; translate: -50% 0; animation: none; }
  .sw-ig figcaption { justify-content: center; padding: 0; }
  .sw-rest { margin-top: 40px; }
  .sw-photo { grid-column: 1 / -1; margin: 0; }
  .sw-lead { grid-column: 1 / -1; padding: 28px 0 0; }
  .sw-num { grid-column: 1 / -1; text-align: left; padding-right: 0; }
  .sw-stats .sw-label { grid-column: 1 / -1; padding: 6px 0 0; }
  .sw-quote { font-size: clamp(48px, 13.5vw, 100px); }
  .sw-quote .ln { white-space: normal; }
  .sw-quote .c5 { padding-left: 16vw; } .sw-quote .c2 { padding-left: 6vw; }
}
