/* clarryherrera.com  |  Public Sans, AGENIX palette, editorial light/dark rhythm */

:root {
  --ink: #333333;
  --ink-soft: #55554f;
  --muted: #6f6e68;
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --line: #e3e0d7;
  --blue: #0047ab;
  --blue-deep: #00398a;
  --blue-soft: #e6eefb;
  --green: #007a5e;
  --green-soft: #e3f2ed;
  --yellow: #f2d45c;
  --orange: #fb5a38;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255,255,255,.84);
  --on-dark-muted: rgba(255,255,255,.6);
  --blue-on-dark: #86adf5;
  --green-on-dark: #4fcaa5;
  --radius: 22px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px; line-height: 1.55; color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.012em; font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); }
.small { font-size: .95rem; color: var(--muted); }
strong { font-weight: 700; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.maxw { max-width: 720px; }
.mx { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.hl { background: linear-gradient(transparent 64%, var(--yellow) 64%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; }
.band-dark .hl { background: linear-gradient(transparent 64%, var(--blue) 64%, var(--blue) 92%, transparent 92%); }

/* bands */
.band { padding: 112px 0; position: relative; }
.band-tight { padding: 40px 0; position: relative; }
.band-dark { background: var(--ink); color: var(--on-dark); }
.band-dark.textured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(../assets/art/dark-texture.jpg) center / cover no-repeat; opacity: .3; mix-blend-mode: screen;
}
.band-dark > .container { position: relative; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: var(--on-dark-soft); }
.band-dark .lead { color: var(--on-dark-soft); }
.band-dark .small { color: var(--on-dark-muted); }
.band-dark a { color: #fff; }
.band-dark a:hover { color: var(--yellow); }
.band-paper2 { background: var(--paper-2); }
.band-line { border-top: 1px solid var(--line); }


/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 17px 28px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after { content: "\2192"; display: inline-block; transition: transform .25s var(--ease); font-weight: 700; }
.btn.noarrow::after { content: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 24px -10px rgba(0,71,171,.6); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; box-shadow: 0 14px 28px -10px rgba(0,71,171,.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.band-dark .btn-primary { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 10px 28px -12px rgba(0,0,0,.8); }
.band-dark .btn-primary:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.band-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.band-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #00634c; border-color: #00634c; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 30px; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); position: relative; padding-bottom: 3px; }
.link-arrow::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transition: transform .3s var(--ease); }
.link-arrow:hover::before { transform: scaleX(.35); }
.link-arrow::after { content: " \2197"; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.86);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(0,0,0,.35); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: height .3s var(--ease); }
.site-header.scrolled .container { height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark img { height: 26px; width: auto; }
.wordmark .mark { height: 34px; width: 34px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:not(.btn):hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav > a:hover { color: var(--blue); }
.nav .btn { padding: 12px 20px; color: #fff; }
.nav .btn:hover { color: #fff; }
.has-menu { position: relative; }
.has-menu > button {
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink);
  background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.has-menu > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.has-menu > button:hover, .has-menu.open > button { color: var(--blue); }
.has-menu.open > button::after { transform: translateY(1px) rotate(225deg); }
/* the menu starts at the button's bottom edge with an invisible bridge, so the pointer never leaves the hover area */
.menu { position: absolute; top: 100%; left: -14px; padding-top: 18px; min-width: 260px; display: none; }
.has-menu.open .menu { display: block; animation: menuIn .22s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.menu a { padding: 12px 14px; border-radius: 10px; display: block; color: var(--ink); text-decoration: none; font-weight: 600; transition: background .15s; }
.menu a:hover { background: var(--paper-2); color: var(--blue); }
.menu a small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.nav-toggle { display: none; font: inherit; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .2s; }

/* hero */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 600px; font-size: 1.28rem; }
.hero-stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.hero-stage .funnel { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.hero-stage .photo { position: absolute; left: 17%; top: 9%; width: 66%; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(51,51,51,.45); }
.hero-stage .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-photo { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50% 50% 50% 22px; background: var(--paper-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero-photo.right { justify-self: end; border-radius: 50% 22px 50% 50%; }
.hero-grid.rev { grid-template-columns: 7fr 5fr; }
.hero-grid.rev.even { grid-template-columns: 1fr 1fr; gap: 56px; }
.hero-visual { width: 100%; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual.tall { aspect-ratio: 4 / 5; max-width: 560px; justify-self: end; }
.hero-dark { background: var(--ink); color: #fff; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: var(--on-dark-soft); }
.hero-dark .link-arrow { color: #fff; } .hero-dark .link-arrow::before { background: #fff; }
.hero-dark::before { content: ""; position: absolute; inset: 0; background: url(../assets/art/speaking-art.jpg) center / cover no-repeat; opacity: .9; }
.hero-dark .container { position: relative; }
.hero-dark .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero-dark .btn-primary:hover { background: var(--yellow); border-color: var(--yellow); }

/* logo rows and marquee */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 48px; }
.logo-row .cap { font-size: .9rem; color: var(--muted); white-space: nowrap; }
.logo-row img { height: 30px; width: auto; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.logo-row img:hover { opacity: 1; transform: translateY(-2px); }
.logo-row img.tall { height: 44px; }
.band-dark .logo-row .cap { color: var(--on-dark-muted); }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 38s linear infinite; padding: 6px 0; }
.marquee:hover .track { animation-play-state: paused; }
.marquee img { height: 26px; width: auto; opacity: .8; }
.marquee img.tall { height: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.featured { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.featured .cap { font-size: .9rem; color: var(--muted); white-space: nowrap; }

/* captioned logo grids: even cells, wrap cleanly on small screens */
.logo-grid { display: grid; grid-template-columns: 130px repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 36px; align-items: center; min-width: 0; }
.logo-grid .cap { font-size: .9rem; color: var(--muted); }
.logo-grid .cell { height: 56px; display: flex; align-items: center; min-width: 0; overflow: hidden; }
.logo-grid .cell img { max-height: 100%; max-width: 170px; width: auto; height: auto; object-fit: contain; opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.logo-grid .cell img:hover { opacity: 1; transform: translateY(-2px); }
.logo-grid .cell img.sq { max-height: 100%; max-width: 110px; }
.band-dark .logo-grid .cap { color: var(--on-dark-muted); }
.logo-grid + .logo-grid { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }

/* grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stack > * + * { margin-top: 36px; }
.split { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.split .sticky { position: sticky; top: 110px; }
.two-col { columns: 2; column-gap: 48px; }
.two-col p { break-inside: avoid; }

/* cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 38px 36px;
  display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.card h3 { font-size: 1.7rem; margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.card .card-lead { font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.card p { color: var(--ink-soft); }
.card .btn { align-self: flex-start; margin-top: auto; }
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1.3fr auto; gap: 28px 44px; align-items: center; }
.card.wide h3 { font-size: 2rem; }
.card.wide .btn { margin-top: 0; }
.card.wide .card-art { grid-column: 1 / -1; margin: 10px -36px -38px; border-top: 1px solid var(--line); }
.card.wide .card-art img { width: 100%; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--blue); }
.card.accent-green::before { background: var(--green); }
.card.accent-orange::before { background: var(--orange); }
.band-dark .card p { color: var(--ink-soft); }
.band-dark .card a { color: var(--blue); }
.band-dark .card .btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.band-dark .card .btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.band-dark .card .btn-green { background: var(--green); color: #fff; border-color: var(--green); }

/* three ways in */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px 30px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tier:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); }
.tier.featured-tier { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,71,171,.12); }
.tier-head { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tier-offer { margin: 6px 0 0; font-weight: 700; font-size: 1.05rem; color: var(--blue); }
.tier h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.tier dl { margin: 0 0 24px; display: grid; grid-template-columns: 1fr; gap: 0; }
.tier dt { font-weight: 700; font-size: .92rem; margin-top: 14px; }
.tier dd { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
.tier .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr; } }

/* feature columns */
.feature h3 { margin-bottom: 10px; }
.feature .tag { display: block; width: 52px; height: 8px; border-radius: 4px; margin-bottom: 20px; background: var(--blue); transform-origin: left; }
.feature .tag.green { background: var(--green); }
.feature .tag.yellow { background: var(--yellow); }
.feature .tag.orange { background: var(--orange); }
.feature .tag.white { background: #fff; }
.feature p { color: var(--ink-soft); }
.band-dark .feature p { color: var(--on-dark-soft); }
.feature.big h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }

/* definition lists (layer criteria) */
.defs { display: grid; grid-template-columns: 1fr; }
.def { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.def:last-child { border-bottom: 1px solid var(--line); }
.def h4 { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.def p { color: var(--ink-soft); margin: 0; }
.band-dark .def { border-color: rgba(255,255,255,.16); }
.band-dark .def p { color: var(--on-dark-soft); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin: 0 0 10px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.checks li::after { content: ""; position: absolute; left: 6px; top: .38em; margin-top: 4px; width: 5px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.band-dark .checks li { color: var(--on-dark-soft); }
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding-left: 28px; margin: 0 0 14px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 3px; background: var(--blue); }
.band-dark .bullets li::before { background: var(--yellow); }
.bullets.big li { font-size: 1.2rem; margin-bottom: 18px; }

/* statement (systems page, from the post) */
.statement .lines { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 28px 0 32px; }
.statement .lines span { display: block; }
.statement .closer { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; margin-top: 48px; color: var(--blue); }
.band-dark .statement .closer { color: var(--yellow); }
.ingredients { columns: 2; column-gap: 40px; list-style: none; padding: 0; margin: 20px 0 28px; font-weight: 600; font-size: 1.15rem; }
.ingredients li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.band-dark .ingredients li { border-color: rgba(255,255,255,.16); }

/* the path section: copy left, compact diagram right */
.path-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.path-grid .diagram img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: 0 40px 80px -50px rgba(0,0,0,.3); }
.band-dark .path-grid .diagram img { box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
@media (max-width: 1000px) { .path-grid { grid-template-columns: 1fr; gap: 36px; } }

/* figures and art */
.figure { margin: 48px 0 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure.framed img { border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(0,0,0,.35); background: #fff; }
.figure figcaption { font-size: .92rem; color: var(--muted); margin-top: 12px; }
.band-dark .figure figcaption { color: var(--on-dark-muted); }
.art { border-radius: var(--radius); overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.tall { aspect-ratio: 3 / 4; }
.art.wide { aspect-ratio: 16 / 9; }
.art.shadow { box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }

/* bio */
.bio-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; position: relative; box-shadow: 0 40px 80px -40px rgba(51,51,51,.4); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bio-photo.square { aspect-ratio: 1 / 1; }
.offset { position: relative; }

/* forms */
form { margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #cfcbc2; border-radius: var(--radius-sm); padding: 15px 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,71,171,.15); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.band-dark .field label { color: #fff; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.band-dark .form-note { color: var(--on-dark-muted); }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 40px; border: 1px solid var(--line); }
.form-card label, .band-dark .form-card .field label { color: var(--ink); }
.band-dark .form-card p { color: var(--ink-soft); }
.band-dark .form-card .btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 24px -10px rgba(0,71,171,.6); }
.band-dark .form-card .btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.captcha { margin: 6px 0 14px; min-height: 65px; }
.form-status { font-size: .92rem; color: var(--orange); margin: 8px 0 0; min-height: 1.2em; }

/* speaking topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.topic { border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 34px 30px; background: rgba(255,255,255,.04); transition: transform .35s var(--ease), background .3s; }
.topic:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.topic h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.topic .tag { display: block; width: 52px; height: 8px; border-radius: 4px; margin-bottom: 20px; }

/* photo gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; margin-top: 40px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .w2 { grid-column: span 2; }
.gallery .h2 { grid-row: span 2; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 600px) { .gallery { grid-auto-rows: 150px; gap: 10px; } }

/* linkedin */
.li-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 40px; align-items: start; }
.li-post { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; min-width: 0; }
.li-post iframe { display: block; width: 100%; max-width: 100%; height: 640px; border: 0; transform-origin: 0 0; }
.li-badge { display: flex; justify-content: flex-start; margin-top: 28px; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding: 72px 0 36px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url(../assets/art/dark-texture.jpg) center / cover no-repeat; opacity: .25; mix-blend-mode: screen; pointer-events: none; }
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
.site-footer .wordmark img { height: 30px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.squares { display: flex; gap: 8px; margin-top: 22px; }
.squares i { width: 18px; height: 18px; border-radius: 4px; display: block; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: var(--on-dark-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease); }
.reveal-clip.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.hero .rise { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero .rise:nth-child(1) { animation-delay: .05s } .hero .rise:nth-child(2) { animation-delay: .18s } .hero .rise:nth-child(3) { animation-delay: .3s } .hero .rise:nth-child(4) { animation-delay: .42s }
.hero .hero-stage .photo { opacity: 0; transform: translateY(30px); animation: rise 1s var(--ease) .15s forwards; }
.hero .hero-stage .funnel { opacity: 0; transform: translateY(-16px); animation: rise 1.1s var(--ease) 0s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.parallax { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip, .hero .rise, .hero .hero-stage .photo, .hero .hero-stage .funnel { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
  .marquee .track { animation: none; }
  html { scroll-behavior: auto; }
}

/* utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.color-blue { color: var(--blue); } .color-green { color: var(--green); } .color-orange { color: var(--orange); } .color-yellow { color: var(--yellow); }
.band-dark .color-blue { color: var(--blue-on-dark); } .band-dark .color-green { color: var(--green-on-dark); }

/* responsive */
@media (max-width: 1000px) {
  .grid-3, .grid-4, .topics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .sticky { position: static; }
  .card.wide { grid-template-columns: 1fr; }
  .two-col { columns: 1; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .band { padding: 76px 0; }
  .hero { padding: 32px 0 56px; }
  .hero-grid, .hero-grid.rev, .hero-grid.rev.even { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual.tall { justify-self: start; max-width: 100%; aspect-ratio: 4 / 3; }
  .hero-stage { max-width: 360px; order: 2; margin-top: 8px; }
  .hero-grid > div:not(.hero-stage) { order: 1; }
  .hero-photo { max-width: 260px; }
  .hero-photo.right { justify-self: start; }
  .hero-grid.rev .hero-photo { order: -1; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .def { grid-template-columns: 1fr; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .ingredients { columns: 1; }
  .featured { grid-template-columns: 1fr; gap: 14px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; box-shadow: 0 30px 40px -30px rgba(0,0,0,.3); }
  .nav.open { display: flex; }
  .nav > a, .has-menu > button { padding: 14px 0; display: block; width: 100%; text-align: left; font-size: 1.05rem; }
  .nav > a:not(.btn)::after { display: none; }
  .menu { position: static; padding: 0 0 8px 12px; min-width: 0; }
  .menu-panel { box-shadow: none; border: 0; padding: 0; background: transparent; }
  .nav .btn { margin-top: 10px; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form-card { padding: 26px 20px; }
}
@media (max-width: 860px) {
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
  .logo-grid .cap { grid-column: 1 / -1; }
  .logo-grid .cell { height: 48px; }
  .logo-grid .cell img { max-width: 100%; }
}
@media (max-width: 600px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-4, .topics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  :root { --gutter: 16px; --radius: 18px; }
  .li-post iframe { height: 560px; }
}
