:root {
    --bg: #0b0d10;
    --surface: #12151a;
    --surface-2: #181c22;
    --text: #f4f5f6;
    --muted: #a6adb7;
    --line: rgba(255, 255, 255, .12);
    --accent: #ffffff;
    --accent-contrast: #0b0d10;
    --header: rgba(11, 13, 16, .82);
    --shadow: 0 24px 70px rgba(0, 0, 0, .25);
    --radius: 24px;
    --shell: 1220px;
}

html[data-theme="light"] {
    --bg: #f5f4f1;
    --surface: #ffffff;
    --surface-2: #eceae5;
    --text: #17191c;
    --muted: #626873;
    --line: rgba(17, 19, 23, .13);
    --accent: #17191c;
    --accent-contrast: #ffffff;
    --header: rgba(245, 244, 241, .86);
    --shadow: 0 24px 70px rgba(25, 29, 34, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}
body.viewer-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 9999;
    transform: translateY(-150%);
    background: var(--text);
    color: var(--bg);
    padding: 8px 12px;
    border-radius: 8px;
}
.skip-link:focus { transform: none; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-muted { background: var(--surface); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: var(--header);
    backdrop-filter: blur(18px);
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 1.02rem; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.theme-toggle, .nav-toggle {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
}
.theme-toggle { width: 38px; height: 38px; }
.nav-toggle { display: none; padding: 8px 14px; }

.hero {
    min-height: min(860px, calc(100svh - 78px));
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: end;
}
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center 52%; }
.hero-shade { background: linear-gradient(180deg, rgba(5,6,8,.16) 5%, rgba(5,6,8,.20) 45%, rgba(5,6,8,.88) 100%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(60px, 9vw, 110px); color: white; }
.eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero .eyebrow { color: rgba(255,255,255,.75); }
h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(3rem, 7vw, 7rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
.hero h1 { max-width: 1050px; text-shadow: 0 3px 30px rgba(0,0,0,.28); }
.hero h1 span { color: rgba(255,255,255,.78); }
.hero-lead { max-width: 720px; margin: 26px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: rgba(255,255,255,.82); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 750;
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: #fff; color: #0b0d10; border-color: #fff; }
.button-ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.34); backdrop-filter: blur(10px); }
.button-secondary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

.editorial-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.prose { color: var(--muted); }
.prose h2 { color: var(--text); margin-bottom: 24px; }
.prose p { margin: 0 0 1.2em; }
.prose-large { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.intro-section h2 { max-width: 620px; }

.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 44px; }
.section-note { margin: 0; max-width: 360px; color: var(--muted); }
.text-link { color: var(--text); text-decoration: none; font-weight: 750; white-space: nowrap; }
.text-link:hover { opacity: .7; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-grid-wide { grid-template-columns: repeat(2, 1fr); }
.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.story-card a { text-decoration: none; }
.story-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s ease; }
.story-card:hover img { transform: scale(1.025); }
.story-card-body { padding: 24px; }
.story-card-body h2, .story-card-body h3 { margin-bottom: 14px; }
.story-card-body p:last-child { color: var(--muted); margin-bottom: 0; }
.empty-editorial { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(30px, 6vw, 72px); max-width: 860px; }
.empty-editorial.large { margin: 0 auto; }
.empty-editorial h2, .empty-editorial h3 { margin-bottom: 18px; }
.empty-editorial > p:last-of-type { color: var(--muted); max-width: 700px; }

.identity-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.owl-panel { min-height: 420px; display: grid; place-items: center; border-radius: var(--radius); background: #050607; border: 1px solid rgba(255,255,255,.08); }
.owl-panel img { width: min(52%, 280px); filter: drop-shadow(0 25px 40px rgba(0,0,0,.4)); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-grid article { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; }
.service-grid span { color: var(--muted); font-size: .74rem; letter-spacing: .13em; font-weight: 800; }
.service-grid h3 { margin-top: auto; margin-bottom: 12px; }
.service-grid p { margin: 0; color: var(--muted); }

.contact-section { padding-top: 24px; }
.contact-panel { padding: clamp(36px, 6vw, 72px); border-radius: var(--radius); background: var(--surface-2); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.contact-panel h2 { max-width: 760px; }
.contact-actions { margin-top: 0; }

.page-hero { padding: clamp(80px, 12vw, 150px) 0 clamp(52px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; font-size: clamp(3rem, 6.5vw, 6.6rem); }
.page-hero p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-card { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface); cursor: zoom-in; text-align: left; }
.photo-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.photo-card span { position: absolute; left: 14px; right: 14px; bottom: 12px; color: white; font-size: .78rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: .25s ease; text-shadow: 0 1px 8px #000; }
.photo-card:hover img { transform: scale(1.035); filter: brightness(.75); }
.photo-card:hover span { opacity: 1; transform: none; }
.pagination { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: 18px; color: var(--muted); }
.pagination a { color: var(--text); text-decoration: none; font-weight: 750; }
.notice { padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }

.image-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); padding: 34px; display: grid; place-items: center; }
.image-viewer[hidden] { display: none; }
.image-viewer figure { margin: 0; max-width: 94vw; max-height: 90vh; display: grid; gap: 12px; justify-items: center; }
.image-viewer img { max-width: 94vw; max-height: 82vh; object-fit: contain; }
.image-viewer figcaption { color: rgba(255,255,255,.7); font-size: .85rem; }
.viewer-close { position: absolute; top: 20px; right: 22px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.35); color: white; font-size: 1.8rem; cursor: pointer; }

.owl-story { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(30px, 5vw, 56px); display: grid; grid-template-columns: 180px 1fr; gap: 38px; align-items: center; }
.owl-story img { width: 180px; background: #050607; border-radius: 50%; padding: 18px; }
.owl-story p:last-child { color: var(--muted); margin-bottom: 0; }

.story-page { padding: clamp(70px, 10vw, 130px) 0; }
.story-page-header { margin-bottom: 44px; }
.story-page-header h1 { font-size: clamp(3rem, 6.4vw, 6rem); }
.story-meta { color: var(--muted); margin: 18px 0 0; }
.story-hero img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius); }
.story-body { padding-top: 54px; }

.site-footer { border-top: 1px solid var(--line); padding: 54px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 60px; align-items: start; }
.footer-brand { font-weight: 900; letter-spacing: .12em; }
.site-footer p { color: var(--muted); margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { grid-column: 1 / -1; font-size: .8rem; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { position: absolute; top: 78px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px; }
    .theme-toggle { margin: 8px 12px 10px; }
    .editorial-grid, .identity-grid { grid-template-columns: 1fr; }
    .story-grid, .story-grid-wide { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .contact-panel { align-items: start; flex-direction: column; }
    .owl-story { grid-template-columns: 120px 1fr; }
    .owl-story img { width: 120px; }
}

@media (max-width: 620px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .brand-copy small { display: none; }
    .hero { min-height: 72svh; }
    .hero-content { padding-bottom: 44px; }
    .section { padding: 72px 0; }
    .section-heading { align-items: start; flex-direction: column; }
    .story-grid, .story-grid-wide, .service-grid, .photo-grid { grid-template-columns: 1fr; }
    .photo-card img { aspect-ratio: 4/3; }
    .photo-card span { opacity: 1; transform: none; background: linear-gradient(transparent, rgba(0,0,0,.68)); left: 0; right: 0; bottom: 0; padding: 38px 14px 12px; }
    .owl-panel { min-height: 310px; }
    .owl-story { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
