*, *::before, *::after { box-sizing: border-box; }

:root {
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --soft: #f5f5f7;
    --paper: #fbfbfd;
    --line: rgba(29,29,31,.12);
    --blue: #006dcc;
    --white: #fff;
    --shadow: 0 20px 70px rgba(29,29,31,.12);
    --ease: cubic-bezier(.2,.8,.2,1);
    --motion-quick: 120ms;
    --motion-surface: 320ms;
    --motion-slow: 720ms;
    --ease-decelerate: cubic-bezier(.16,1,.3,1);
    --focus-ring: 2px solid var(--blue);
}

html { scroll-behavior: smooth; background: var(--paper); }
body {
    min-width: 280px; margin: 0; color: var(--ink); background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }

.site-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-nav {
    position: sticky; top: 0; z-index: 10; min-height: 64px; display: flex;
    align-items: center; justify-content: space-between; gap: 24px;
    border-bottom: 1px solid var(--line); background: rgba(251,251,253,.84);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.site-nav .site-shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); text-decoration: none; }
.brand strong { font-size: 22px; line-height: 1; letter-spacing: -.06em; }
.brand span { color: var(--muted); font-size: 13px; }
.site-nav-links { display: flex; align-items: center; gap: 22px; }
.site-nav-links a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .2s ease; }
.site-nav-links a:hover { color: var(--ink); }
.site-nav-links .language { color: var(--blue); }

.gallery-hero { padding: clamp(86px, 13vw, 170px) 0 92px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gallery-hero h1 { max-width: 920px; margin: 0; font-size: clamp(54px, 9vw, 116px); line-height: .92; letter-spacing: -.075em; }
.gallery-hero h1 em { color: var(--muted); font-style: normal; }
.gallery-hero-lead { max-width: 600px; margin: 34px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.48; }
.gallery-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.gallery-hero-meta span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.gallery-section { padding: 0 0 120px; }
.gallery-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.gallery-section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.05em; }
.gallery-section-head p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery-card {
    position: relative; display: block; min-width: 0; overflow: hidden; border-radius: 28px;
    background: var(--white); text-decoration: none; box-shadow: 0 12px 38px rgba(29,29,31,.07);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.gallery-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.gallery-card-visual { position: relative; aspect-ratio: 1.22 / 1; overflow: hidden; background: #e7e7eb; }
.gallery-card-visual img { width: 100%; height: 100%; min-width: 0; object-fit: cover; transition: transform .8s var(--ease), filter .4s ease; }
.gallery-card:hover .gallery-card-visual img { transform: scale(1.045); filter: saturate(1.05); }
.gallery-card-copy { padding: 24px 24px 26px; }
.gallery-card-kicker { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.gallery-card h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; letter-spacing: -.045em; }
.gallery-card p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.gallery-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--blue); font-size: 13px; font-weight: 650; }
.gallery-card-foot span:last-child { font-size: 21px; line-height: .6; transition: transform .25s ease; }
.gallery-card:hover .gallery-card-foot span:last-child { transform: translate(4px, -4px); }

.album-section { padding: 12px 0 132px; border-top: 1px solid var(--line); }
.album-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.album-head h2 { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: .95; letter-spacing: -.065em; }
.album-carousel { margin-top: 20px; }
.album-carousel-toolbar { margin-top: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.album-carousel-controls { display: flex; align-items: center; gap: 9px; }
.album-carousel-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--soft); cursor: pointer; font: inherit; font-size: 18px; line-height: 1; transition: color .25s ease, background .25s ease, transform .25s var(--ease); }
.album-carousel-button:hover { color: var(--white); background: var(--ink); transform: scale(1.04); }
.album-carousel-button:active { transform: scale(.96); }
.album-carousel-button:focus-visible { outline: 3px solid rgba(41,151,255,.42); outline-offset: 3px; }
.album-carousel-status { min-width: 56px; color: var(--muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.album-viewport { overflow: hidden; padding: 12px 0 26px; touch-action: pan-y; }
.album-viewport:focus-visible { outline: 3px solid rgba(41,151,255,.55); outline-offset: 8px; border-radius: 28px; }
.album-track { display: flex; width: 100%; gap: 18px; transition: transform .72s cubic-bezier(.16,1,.3,1); will-change: transform; }
.album-card { position: relative; display: block; width: 100%; min-width: 0; margin: 0; flex: 0 0 calc((100% - 18px) / 2); aspect-ratio: 4 / 5; overflow: hidden; border: 0; border-radius: 26px; background: #ddd; color: var(--white); box-shadow: 0 14px 36px rgba(0,0,0,.12); cursor: default; transition: transform .72s cubic-bezier(.16,1,.3,1), opacity .5s ease, filter .5s ease, box-shadow .4s ease; }
.album-carousel.is-ready .album-card { opacity: .52; filter: saturate(.72); transform: scale(.965) translateY(8px); }
.album-carousel.is-ready .album-card.is-visible { opacity: 1; filter: saturate(1); transform: scale(1) translateY(0); }
.album-card:hover { transform: translateY(-8px) scale(1) !important; box-shadow: 0 24px 52px rgba(0,0,0,.18); }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; object-fit: cover; background: #e7e7eb; transition: transform .65s var(--ease), filter .4s ease; }
.album-card[data-album-fit="contain"] { background: #f1f1f4; }
.album-card[data-album-fit="contain"] img { object-fit: contain; }
.album-card:hover img { transform: scale(1.06); filter: saturate(1.06); }
.album-card-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02) 22%, rgba(0,0,0,.12) 42%, rgba(0,0,0,.88) 100%); pointer-events: none; }
.album-card-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: block; min-width: 0; padding: 28px 24px 24px; color: var(--white); }
.album-card-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.album-card-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.album-card-name { display: block; min-width: 0; color: var(--white); font-size: 13px; line-height: 1.35; }
.album-card-name strong { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.025em; line-height: 1.13; }
.album-card-name small { display: block; margin-top: 9px; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.45; }
.album-carousel-footer { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: center; gap: 22px; }
.album-carousel-progress { position: relative; height: 2px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.08); }
.album-carousel-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, #667eea, #8959bc, #d47adf); transform: scaleX(var(--album-progress, .4)); transform-origin: left center; transition: transform .72s cubic-bezier(.16,1,.3,1); }
.album-carousel-dots { display: flex; align-items: center; gap: 6px; }
.album-carousel-dot { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.album-carousel-dot::before { content: ''; display: block; width: 16px; height: 6px; margin: auto; border-radius: 999px; background: #c7c7cc; transform: scaleX(.375); transform-origin: center; transition: transform .32s var(--ease), background .2s ease; }
.album-carousel-dot[aria-current="true"]::before { transform: scaleX(1); background: var(--ink); }

.cover-think {
    position: relative; height: 100%; overflow: hidden; color: #f8fbff;
    background:
        radial-gradient(circle at 86% 8%, rgba(130,198,255,.42), transparent 30%),
        radial-gradient(circle at 8% 82%, rgba(59,108,166,.42), transparent 34%),
        linear-gradient(135deg, #0b192c 0%, #183452 58%, #86b5dd 125%);
}
.cover-think::before, .cover-think::after { content: ''; position: absolute; border: 1px solid rgba(205,233,255,.24); border-radius: 50%; transform: rotate(-18deg); }
.cover-think::before { width: 145%; aspect-ratio: 1; right: -76%; top: -38%; }
.cover-think::after { width: 102%; aspect-ratio: 1; right: -40%; top: 10%; border-color: rgba(205,233,255,.14); }
.cover-think .think-cover-ui {
    position: relative; z-index: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden;
}
.cover-think .think-cover-ui::before {
    content: ''; position: absolute; inset: -8%; opacity: .2;
    background: linear-gradient(115deg, transparent 0 48%, rgba(207,235,255,.5) 48.2%, transparent 48.6% 100%);
    transform: rotate(-8deg);
}
.cover-think .think-cover-ui::after {
    content: ''; position: absolute; left: 7%; bottom: 8%; width: 34px; height: 34px; border-radius: 50%;
    background: #9bdab9; box-shadow: 0 0 0 8px rgba(155,218,185,.12), 0 0 34px rgba(155,218,185,.46);
}
.cover-think .think-cover-orbit { position: absolute; display: block; border: 1px solid rgba(206,235,255,.22); border-radius: 50%; transform: rotate(-18deg); }
.cover-think .think-cover-orbit-one { width: 126%; aspect-ratio: 1; right: -68%; top: -32%; }
.cover-think .think-cover-orbit-two { width: 92%; aspect-ratio: 1; right: -38%; top: 12%; border-color: rgba(206,235,255,.12); }
.cover-think .think-cover-dashboard {
    position: absolute; z-index: 2; right: 5%; top: 14%; width: min(64%, 330px); height: 66%; min-width: 176px;
    padding: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,.72); border-radius: 18px;
    background: rgba(247,251,255,.92); box-shadow: 0 24px 42px rgba(5,20,38,.28), inset 0 1px rgba(255,255,255,.94);
    transform: rotate(-5deg); transform-origin: 80% 70%;
}
.cover-think .think-cover-dashboard-top, .cover-think .think-cover-dashboard-bottom { display: flex; align-items: center; gap: 6px; }
.cover-think .think-cover-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #5caee2; box-shadow: 0 0 0 4px rgba(92,174,226,.14); }
.cover-think .think-cover-topline { display: block; width: 30%; height: 6px; border-radius: 99px; background: #c8ddeb; }
.cover-think .think-cover-topline.short { width: 16%; margin-left: auto; background: #9bc9e2; }
.cover-think .think-cover-dashboard-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 7px; margin-top: 16px; }
.cover-think .think-cover-tile { display: block; height: 37px; border-radius: 10px; background: #e6f1f8; }
.cover-think .think-cover-tile.primary { grid-row: span 2; height: 81px; background: linear-gradient(145deg, #cbeaff, #8fc7e9); }
.cover-think .think-cover-tile.wide { background: linear-gradient(145deg, #eaf6ef, #b9e7ca); }
.cover-think .think-cover-chart { display: flex; align-items: flex-end; gap: 5px; height: 34%; min-height: 44px; margin-top: 14px; padding: 0 4px; border-bottom: 1px solid rgba(23,49,74,.12); }
.cover-think .think-cover-chart i { display: block; flex: 1; min-width: 4px; height: 38%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #75b9e8, #2d79b3); }
.cover-think .think-cover-chart i:nth-child(2) { height: 58%; }
.cover-think .think-cover-chart i:nth-child(3) { height: 46%; }
.cover-think .think-cover-chart i:nth-child(4) { height: 73%; }
.cover-think .think-cover-chart i:nth-child(5) { height: 65%; }
.cover-think .think-cover-chart i:nth-child(6) { height: 92%; background: linear-gradient(180deg, #9bdab9, #46a477); }
.cover-think .think-cover-dashboard-bottom { margin-top: 12px; }
.cover-think .think-cover-dashboard-bottom span { display: block; width: 42%; height: 6px; border-radius: 99px; background: #c8ddeb; }
.cover-think .think-cover-dashboard-bottom span:last-child { width: 22%; margin-left: auto; background: #b9e7ca; }
.cover-think .think-cover-float { position: absolute; z-index: 3; display: block; border-radius: 12px; background: rgba(255,255,255,.78); box-shadow: 0 14px 26px rgba(5,20,38,.18); transform: rotate(8deg); }
.cover-think .think-cover-float-a { width: 46px; height: 28px; right: 17%; bottom: 16%; }
.cover-think .think-cover-float-b { width: 25px; height: 25px; right: 8%; bottom: 30%; border-radius: 50%; background: #86c9a4; transform: none; }

.detail-hero { padding: clamp(72px, 11vw, 136px) 0 64px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-hero .eyebrow { margin-top: 72px; }
.detail-hero h1 { max-width: 960px; margin: 0; font-size: clamp(48px, 8vw, 104px); line-height: .95; letter-spacing: -.075em; }
.detail-lead { max-width: 740px; margin: 28px 0 0; color: var(--muted); font-size: clamp(19px, 2.2vw, 28px); line-height: 1.45; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.detail-meta span, .detail-tags span { display: inline-flex; padding: 8px 11px; border-radius: 999px; background: #eef6ff; color: #176aa8; font-size: 12px; }
.detail-visual { overflow: hidden; margin: 0 0 80px; border-radius: 30px; background: #e7e7eb; box-shadow: var(--shadow); }
.detail-visual img { width: 100%; max-height: min(72vh, 760px); object-fit: cover; }
.detail-visual .cover-think { height: min(58vw, 680px); min-height: min(58vw, 680px); }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: clamp(48px, 9vw, 130px); padding-bottom: 120px; }
.detail-body h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.06em; }
.detail-body-copy p { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.detail-aside { padding-top: 6px; }
.detail-aside h3 { margin: 0 0 14px; font-size: 15px; letter-spacing: -.01em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
.detail-links a { color: var(--blue); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.detail-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-credit { margin-top: 42px !important; color: var(--ink) !important; font-size: 14px !important; line-height: 1.55 !important; }

.site-footer { padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ===== Surgical polish layer: consistent states without changing content ===== */
body { text-wrap: pretty; }
::selection { color: var(--white); background: var(--blue); }
:where(a, button, [tabindex]):focus-visible {
    outline: var(--focus-ring); outline-offset: 4px;
}
.site-nav-links a, .back-link, .site-footer a {
    transition: color var(--motion-quick) var(--ease-decelerate);
}
.gallery-card {
    transition: transform var(--motion-surface) var(--ease-decelerate),
                box-shadow var(--motion-surface) var(--ease-decelerate);
}
.gallery-card-visual img {
    transition: transform var(--motion-slow) var(--ease-decelerate), filter var(--motion-surface) ease;
}
.album-track, .album-card, .album-carousel-progress span {
    transition-timing-function: var(--ease-decelerate);
}
.reveal {
    transition: opacity var(--motion-surface) var(--ease-decelerate),
                transform var(--motion-surface) var(--ease-decelerate);
}

@media (hover: none), (pointer: coarse) {
    .gallery-card:hover { transform: none; box-shadow: 0 12px 38px rgba(29,29,31,.07); }
    .gallery-card:hover .gallery-card-visual img { transform: none; filter: none; }
    .album-card:hover { transform: none !important; box-shadow: 0 14px 36px rgba(0,0,0,.12); }
    .album-card:hover img { transform: none; filter: none; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 720px) {
    .site-shell { width: min(100% - 32px, 1180px); }
    .site-nav { min-height: 58px; }
    .brand strong { font-size: 20px; }
    .site-nav-links { gap: 14px; }
    .site-nav-links a { font-size: 12px; }
    .site-nav-links a:first-child { display: none; }
    .gallery-hero { padding: 76px 0 64px; }
    .gallery-hero h1 { font-size: clamp(48px, 15vw, 76px); }
    .gallery-hero-lead { font-size: 18px; }
    .gallery-section { padding-bottom: 80px; }
    .gallery-section-head { display: block; }
    .gallery-section-head p { margin-top: 12px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
    .gallery-card-visual { aspect-ratio: 1.15 / 1; }
    .album-section { padding-bottom: 86px; }
    .album-head { display: block; }
    .album-carousel { margin-top: 26px; }
    .album-carousel-toolbar { margin-top: 18px; }
    .album-viewport { border-radius: 20px; padding-bottom: 20px; }
    .album-track { gap: 14px; }
    .album-card { flex-basis: 88%; aspect-ratio: 4 / 5; border-radius: 22px; }
    .album-card-copy { padding: 24px 20px 20px; }
    .album-card-name strong { font-size: 20px; }
    .album-carousel-footer { grid-template-columns: 1fr; gap: 14px; }
    .album-carousel-button { width: 40px; height: 40px; }
    .album-carousel-dots { justify-content: center; }
    .detail-hero { padding: 62px 0 46px; }
    .detail-hero .eyebrow { margin-top: 52px; }
    .detail-hero h1 { font-size: clamp(44px, 13vw, 74px); }
    .detail-lead { font-size: 19px; }
    .detail-visual { margin-bottom: 58px; border-radius: 20px; }
    .detail-visual .cover-think { height: 82vw; min-height: 82vw; }
    .cover-think .think-cover-dashboard { right: 0; top: 9%; width: 62%; height: 70%; min-width: 160px; }
    .detail-body { grid-template-columns: 1fr; gap: 48px; padding-bottom: 80px; }
    .detail-body-copy p { font-size: 16px; }
    .site-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    :root { --motion-quick: .01ms; --motion-surface: .01ms; --motion-slow: .01ms; --ease-decelerate: linear; }
    .reveal { opacity: 1; transform: none; }
}
