/* Palette from the business cards: TTPOA navy ink + card crimson. */
:root {
  --bg: #f3f4f7;
  --surface: #fbfbfd;
  --ink: #121a2b;
  --muted: #4b5568;
  --line: #dde1e8;
  --accent: #c41e3a;
  --accent-hover: #a9182f;
  --accent-ink: #a3162f;          /* accent as text on bg */
  --radius: 14px;                 /* media, tiles, cards; buttons are pills */
  --shadow: 0 24px 50px -24px rgb(18 26 43 / .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  color-scheme: only light;   /* also opts out of Chrome/Samsung forced dark mode */
}

*, *::before, *::after { box-sizing: border-box; }
.hero > *, .about > *, .bento > *, .media-grid > *, .channels > *, .journey > * { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Schibsted Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.025em; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 30; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost i { font-size: 1.25rem; }
.btn-sm { padding: .55rem 1.05rem; font-size: .9375rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 2rem; }
.wordmark { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; margin-right: auto; }
.wordmark img { width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9375rem; padding-block: .4rem; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a[aria-current]::after { transform: scaleX(1); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); font-size: 1.35rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu ul { position: absolute; right: 0; top: calc(100% + .6rem); list-style: none; margin: 0; padding: .5rem; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu a { display: block; padding: .75rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--bg); }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 7vw, 6rem);
  min-height: min(calc(100dvh - var(--nav-h)), 860px);
}
.eyebrow { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(3.75rem, 9.5vw, 8rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; }
.h1-pre { display: block; font-size: .36em; font-weight: 600; letter-spacing: -.02em; color: var(--muted); margin-bottom: .1em; }
.hero-sub { margin-top: 1.75rem; font-size: clamp(1.15rem, 1.6vw, 1.375rem); color: var(--muted); max-width: 30ch; line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero-visual { position: relative; padding-bottom: 3rem; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 562 / 412; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-roles {
  position: absolute; left: -2rem; bottom: 0; list-style: none; margin: 0; padding: .4rem;
  display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-roles li { display: flex; gap: .85rem; align-items: center; padding: .7rem 1.1rem .7rem .7rem; }
.hero-roles li + li { border-top: 1px solid var(--line); }
.hero-roles img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; flex: none; }
.hero-roles img.logo-rect, .roles img.logo-rect { border-radius: 6px; height: 32px; }
.hero-roles strong { display: block; font-size: .95rem; line-height: 1.2; }
.hero-roles span { font-size: .875rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 1.5rem; }
  .hero-visual { padding-bottom: 0; }
  .hero-roles { position: relative; left: auto; margin: -1.5rem 1rem 0; }
}

/* Stats */
.stats { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stats-grid > div { padding: 1.75rem 1.5rem 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; }
.stats-grid > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-size: clamp(2.25rem, 9vw, 4.5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.stats dd b { font-weight: inherit; }
.stats dd span { font-size: .38em; font-weight: 600; letter-spacing: 0; margin-left: .15em; color: var(--accent-ink); }
.stats dt { color: var(--muted); font-size: .9375rem; max-width: 18ch; }
@media (max-width: 767px) {
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .stats-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Section rhythm */
.about, .work, .journey, .gallery-sec, .media { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-title { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 18ch; margin-bottom: 2.5rem; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% center; }
.about-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.5rem; }
.about-text > p { color: var(--muted); max-width: 60ch; }
.about-text > p + p { margin-top: 1rem; }
.pull { margin: 2.5rem 0 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); }
.pull p { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; font-style: italic; line-height: 1.3; letter-spacing: -.02em; max-width: 32ch; padding-bottom: .1em; }
@media (max-width: 767px) {
  .about { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 4 / 3; }
}

/* Work bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 1rem; }
.tile { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 1.75rem; display: flex; flex-direction: column; gap: .6rem; overflow: hidden; }
.tile h3 { font-size: 1.4rem; }
.tile p { color: var(--muted); max-width: 46ch; }
.tile i { font-size: 2rem; color: var(--accent-ink); margin-bottom: auto; }
.tile-wide { grid-column: span 2; }
.tile-img { padding: 0; position: relative; justify-content: flex-end; border: 0; min-height: 380px; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile-img:hover img { transform: scale(1.04); }
.tile-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 14 26 / .92) 0%, rgb(10 14 26 / .45) 42%, transparent 68%); }
.tile-img .tile-body { position: relative; z-index: 1; padding: 1.75rem; color: #f3f4f7; display: grid; gap: .5rem; }
.tile-img .tile-body p { color: rgb(243 244 247 / .85); }
.tile-tall img { object-position: center 30%; }
.tile-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile-accent p { color: rgb(255 255 255 / .88); }
.tile-accent i { color: #fff; }
.tile-split { flex-direction: row; align-items: stretch; gap: 2rem; }
.tile-split > div { display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.partner { margin: 0; flex: 0 0 32%; background: #fff; border-radius: calc(var(--radius) - 4px); padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.partner img { width: 100%; max-width: 150px; margin-inline: auto; }
.partner figcaption { font-size: .8125rem; color: #4b5568; text-align: center; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-split { flex-direction: column; }
}

/* Milestones: sticky heading + rail */
.journey { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.journey-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
.journey-head .section-title { margin-bottom: 1rem; }
.journey-head p { color: var(--muted); max-width: 28ch; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 2px solid var(--line); display: grid; gap: 2.75rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem - 7px); top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--accent); }
.timeline .year { display: block; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; color: var(--accent-ink); margin-bottom: .5rem; }
.timeline p { font-size: 1.125rem; max-width: 56ch; }
@media (max-width: 767px) {
  .journey { grid-template-columns: 1fr; }
  .journey-head { position: static; }
  .timeline { padding-left: 1.5rem; }
  .timeline li::before { left: calc(-1.5rem - 7px); }
}

/* Gallery: 5 photos, 5 cells */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-areas: "a a b c" "a a d e"; gap: 1rem; }
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; }
.gallery figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: .6rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; min-height: 200px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .875rem; color: var(--muted); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d e"; }
  .g-a button { aspect-ratio: 16 / 9; min-height: 0; }
  .gallery button { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 1rem; border: 0; background: transparent; color: #f3f4f7; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.lightbox::backdrop { background: rgb(8 11 20 / .92); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.lightbox img { max-height: 82dvh; width: auto; border-radius: 10px; }
.lightbox figcaption { font-size: .9375rem; color: rgb(243 244 247 / .8); }
.lb-nav, .lb-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .08); color: #fff; display: grid; place-items: center; font-size: 1.3rem; cursor: pointer; }
.lb-nav:hover, .lb-close:hover { background: rgb(255 255 255 / .18); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 1fr 1fr; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { justify-self: end; } .lb-next { justify-self: start; }
}

/* Media */
.media-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; align-items: start; }
.video-poster, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; padding: 0; cursor: pointer; position: relative; background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.video-poster:hover img { transform: scale(1.02); }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.9rem; transition: transform .25s var(--ease); box-shadow: 0 10px 30px -8px rgb(0 0 0 / .5); }
.video-poster:hover .play { transform: scale(1.08); }
.video-cap { margin-top: .9rem; color: var(--muted); font-size: .9375rem; }
.media-side { display: grid; gap: 1.5rem; }
.reel { display: grid; grid-template-columns: 110px 1fr; gap: 1.25rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; transition: border-color .2s, transform .25s var(--ease); }
.reel:hover { border-color: var(--accent); transform: translateY(-2px); }
.reel img { width: 110px; height: 190px; object-fit: cover; border-radius: calc(var(--radius) - 6px); }
.reel strong { font-size: 1.2rem; display: block; margin-bottom: .4rem; }
.reel p { color: var(--muted); font-size: .9375rem; }
.link { display: inline-flex; gap: .3rem; align-items: center; margin-top: .9rem; font-weight: 600; color: var(--accent-ink); }
.press { list-style: none; padding: 0; margin: 0; }
.press a { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.press a span { grid-column: 1; font-size: .8125rem; color: var(--muted); font-weight: 400; }
.press a i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.2rem; transition: transform .2s var(--ease); }
.press a:hover i { transform: translate(2px, -2px); color: var(--accent-ink); }
@media (max-width: 860px) { .media-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding-block: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.contact-head h2 { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -.045em; }
.contact-head p { margin-top: 1.25rem; color: var(--muted); font-size: 1.2rem; max-width: 44ch; }
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.channels > a, .ch-copy > a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), border-color .2s, background-color .2s; }
.channels > a:hover, .ch-copy > a:hover { transform: translateY(-3px); border-color: var(--accent); }
.channels i { font-size: 1.6rem; color: var(--accent-ink); margin-bottom: 1.5rem; }
.channels small { color: var(--muted); font-size: .875rem; }
.channels span { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.channels .ch-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.channels .ch-primary:hover { background: var(--accent-hover); }
.channels .ch-primary i, .channels .ch-primary small { color: #fff; }
.ch-copy { position: relative; }
.copy { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: .8125rem; cursor: pointer; }
.copy i { font-size: .95rem; margin: 0; color: var(--ink); }
.copy em { font-style: normal; }
.copy:hover { border-color: var(--ink); }
@media (max-width: 960px) { .channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .9375rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.footer-links a:hover { color: var(--ink); }

/* Floating WhatsApp: WhatsApp green kept for instant recognition */
.wa-float {
  position: fixed; z-index: 10; right: 1.5rem; bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem .8rem 1rem;
  border-radius: 999px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgb(18 26 43 / .45); transition: transform .25s var(--ease), background-color .2s;
}
.wa-float i { font-size: 1.6rem; }
.wa-float:hover { background: #178f47; transform: translateY(-2px); }
.wa-float:active { transform: scale(.97); }
@media (max-width: 767px) { .wa-float { display: none; } }

/* Mobile quick contact bar */
.quickbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quickbar {
    position: fixed; z-index: 10; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: .4rem; padding: .4rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 48px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; }
  .quickbar i { font-size: 1.2rem; }
  .quickbar .qb-main { background: var(--accent); color: #fff; }
}

/* ---------- Blog ---------- */
.blog, .article { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.blog-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.blog-head h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.045em; }
.blog-head p { margin-top: 1rem; color: var(--muted); font-size: 1.15rem; max-width: 50ch; }
.blog-empty { padding: 4rem 1rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.blog-empty i { font-size: 2.5rem; color: var(--accent-ink); }
.blog-empty h1 { margin-bottom: 1.5rem; }
.post-lead, .post-card { text-decoration: none; color: inherit; }
.post-lead { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: 3rem; }
.post-lead img, .post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); transition: transform .9s var(--ease); }
.post-lead:hover img, .post-card:hover img { transform: scale(1.02); }
.post-lead h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin: .5rem 0 1rem; }
.post-lead p, .post-card p { color: var(--muted); }
.post-lead:not(:has(img)) { grid-template-columns: 1fr; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.blog time, .article time { font-size: .875rem; color: var(--accent-ink); font-weight: 600; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.post-card { display: grid; gap: .5rem; align-content: start; }
.post-card img { margin-bottom: .5rem; }
.post-card h3 { font-size: 1.3rem; }
.post-card p { font-size: .9375rem; }

.article { max-width: 760px; }
.back { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 2rem; }
.back:hover { color: var(--ink); }
.article h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -.04em; margin: .6rem 0 1.25rem; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9375rem; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 45% 30%; }
.article-img { margin: 2rem 0; }
.article-img img { width: 100%; border-radius: var(--radius); }
.article-body { font-size: 1.15rem; line-height: 1.75; }
.article-body p + p { margin-top: 1.25rem; }
.article-body { overflow-wrap: anywhere; }
.share { margin-top: 2.5rem; }

/* ---------- Gallery page ---------- */
.gallery-page { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip span { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] span { color: rgb(255 255 255 / .7); }
.masonry { columns: 3 280px; column-gap: 1rem; }
.masonry figure { margin: 0 0 1.25rem; break-inside: avoid; }
.masonry figure[hidden] { display: none; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.masonry img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.masonry button:hover img { transform: scale(1.03); }
.masonry figcaption { margin-top: .55rem; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.gallery-more { margin-top: 2rem; }
@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .masonry { columns: 2; column-gap: .6rem; }
  .masonry figure { margin-bottom: .9rem; }
  .masonry figcaption { font-size: .8125rem; }
}

/* ---------- Auth + admin ---------- */
.muted { color: var(--muted); }
.auth { min-height: calc(100dvh - var(--nav-h) - 100px); display: grid; place-items: center; padding-block: 3rem; }
.auth-card { width: min(420px, 100%); display: grid; gap: .5rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .btn { justify-content: center; margin-top: 1rem; }
.auth-logo { width: 56px; height: 56px; border-radius: 50%; background: #fff; margin-bottom: .5rem; }
.admin-links a[href="/admin/"] { color: var(--ink); }
.logout { margin: 0; }
.logout .btn { cursor: pointer; background: none; }

label { font-weight: 600; font-size: .9375rem; margin-top: .75rem; }
input:not([type=checkbox]):not([type=file]), textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 220px; line-height: 1.6; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(196 30 58 / .15); }
input::placeholder, textarea::placeholder { color: #6b7385; }
.form-error { background: #fdecef; color: #8f1228; border: 1px solid #f3c2cb; padding: .75rem 1rem; border-radius: 10px; font-weight: 500; }
.flash { display: flex; gap: .5rem; align-items: center; background: #e8f6ee; color: #11603a; border: 1px solid #bfe5cf; padding: .75rem 1rem; border-radius: 10px; font-weight: 500; margin-bottom: 1.5rem; }
code { font-size: .9em; background: var(--bg); padding: .1em .35em; border-radius: 5px; }

.admin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: 2.5rem 5rem; }
.admin .flash { grid-column: 1 / -1; margin: 0; }
.admin h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.admin h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.admin-form form { display: grid; gap: .45rem; }
.drop { position: relative; display: grid; place-items: center; gap: .75rem; min-height: 150px; padding: 1.25rem; border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 500; color: var(--muted); text-align: center; transition: border-color .2s; }
.drop:hover { border-color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .preview { max-height: 260px; width: auto; border-radius: 10px; }
.drop-text { display: inline-flex; gap: .5rem; align-items: center; overflow-wrap: anywhere; }
.drop-text i { font-size: 1.4rem; }
.current-img { display: flex; gap: 1rem; align-items: center; }
.current-img img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.check { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; margin: 0; }
.form-actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.admin-list { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.admin-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.admin-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.admin-list li > img, .noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.noimg { display: grid; place-items: center; background: var(--bg); color: var(--muted); font-size: 1.4rem; }
.meta strong { display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: .25rem; }
.row-actions form { margin: 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn.danger:hover { color: var(--accent); background: #fdecef; }

@media (max-width: 860px) {
  .post-lead { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin { grid-template-columns: minmax(0, 1fr); }
  .admin-list { position: static; }
  .admin-links { display: flex !important; gap: 1rem; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 1.5rem; }
  .admin-links li:last-child { display: none; }
}

/* Tablet + phone refinements */
@media (max-width: 860px) {
  .hero-visual { max-width: 620px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile-wide { grid-column: span 2; }
  .tile-img { min-height: 320px; }
  .tile i { margin-bottom: 1.25rem; }
  .tile-split { flex-direction: row; }
  .partner { flex: 0 0 36%; }
  .about-photo img { aspect-ratio: 1; }
}
@media (max-width: 600px) {
  .wrap { width: min(1240px, 100% - 2rem); }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { padding: 1.4rem; }
  .tile-img { min-height: 280px; padding: 0; }
  .tile-img .tile-body { padding: 1.4rem; }
  .tile h3 { font-size: 1.25rem; }
  .tile-split { flex-direction: column; }
  .partner { flex-direction: row; align-items: center; gap: 1rem; padding: .9rem 1rem; }
  .partner img { max-width: 72px; margin: 0; }
  .partner figcaption { text-align: left; }
  .about-photo img { aspect-ratio: 4 / 3; }

  /* Gallery becomes a swipeable strip; the peeking next photo signals swipe */
  .gallery {
    grid-template-columns: none; grid-template-areas: none;
    grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { grid-area: auto; scroll-snap-align: start; }
  .gallery button, .g-a button { aspect-ratio: 4 / 3; min-height: 0; }

  .reel { grid-template-columns: 88px 1fr; gap: 1rem; }
  .reel img { width: 88px; height: 156px; }

  /* Contact cards become compact rows */
  .channels { grid-template-columns: 1fr; gap: .6rem; margin-top: 2rem; }
  .channels > a, .ch-copy > a { display: grid; grid-template-columns: 40px 1fr; column-gap: .9rem; row-gap: 0; align-items: center; padding: 1rem 1.1rem; }
  .channels i { grid-row: span 2; margin: 0; font-size: 1.5rem; }
  .ch-copy > a { padding-right: 4.5rem; }
  .copy { padding: .5rem; } .copy em { display: none; }
  .copy { top: 50%; transform: translateY(-50%); }
  .contact-head p { font-size: 1.05rem; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* Motion: hero entrance + scroll reveal; off for reduced motion and no-JS */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .menu ul { animation: drop .25s var(--ease); }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
