/* OneEye: one website, two looks. GR = dark, OGEC = light. */
:root {
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 44px);
  --header-h: 76px;
}
body.brand-gr {
  --bg: #0e0e0f; --bg2: #17171a; --text: #ebe7e1; --muted: #9b958c; --line: #2a2a2e;
  --accent: #d8b98a; --on-accent: #111; --card: #151518; --hero-fade: rgba(14,14,15,.88);
}
body.brand-ogec {
  --bg: #ffffff; --bg2: #f4f2ef; --text: #1b1b1b; --muted: #75716b; --line: #e3dfd9;
  --accent: #b3202a; --on-accent: #fff; --card: #ffffff; --hero-fade: rgba(255,255,255,.9);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 99; }
.eyebrow { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { height: 46px; width: auto; }
body.brand-ogec .logo img { height: 52px; mix-blend-mode: multiply; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 9px; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; font-weight: 400; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--bg); border: 1px solid var(--line); padding: 6px 0; flex-direction: column; gap: 0; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .sub a { padding: 9px 18px; letter-spacing: .1em; }
.brand-switch { display: inline-flex; flex: none; border: 1px solid var(--accent); border-radius: 999px; padding: 3px; gap: 2px; }
.brand-switch a { text-decoration: none; padding: 6px 15px; border-radius: 999px; font-size: .74rem; letter-spacing: .2em; font-weight: 500; }
.brand-switch a[aria-current] { background: var(--accent); color: var(--on-accent); }
.brand-switch a:not([aria-current]):hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 12px; font: inherit; letter-spacing: .15em; font-size: .75rem; text-transform: uppercase; cursor: pointer; }
@media (max-width: 1180px) {
  .menu-btn { display: inline-block; margin-left: auto; }
  .brand-switch { order: 2; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub { display: flex; position: static; border: 0; padding: 0 0 4px 14px; min-width: 0; }
  .nav a { padding: 11px 4px; }
}
@media (max-width: 520px) { .logo img { height: 36px; } body.brand-ogec .logo img { height: 40px; } .brand-switch a { padding: 6px 11px; } .site-header .wrap { gap: 10px; } }

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden; background: #000 center/cover no-repeat; color: #f4f1ec; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 11em; margin-bottom: .3em; }
.hero p { font-size: 1.15rem; max-width: 30em; color: #d9d4cc; }
.btn { display: inline-block; border: 1px solid var(--accent); padding: 13px 30px; text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 500; background: transparent; color: inherit; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn.solid:hover { filter: brightness(1.1); }
.hero-ogec { background-color: #111; }
.hero-ogec .eyebrow { color: #e8c47c; }

/* sections */
.section { padding: clamp(46px, 7vw, 92px) 0; }
.section.alt { background: var(--bg2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(40px, 6vw, 80px) 0 10px; }
.page-head p { color: var(--muted); max-width: 44em; font-size: 1.1rem; }
.crumbs { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px 26px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); }
.card .thumb img, .card .thumb figure { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .6s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 14px 0 6px; }
.card h3 { margin: 0 0 6px; font-size: 1.45rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; text-decoration: none; color: #f6f3ee; background: #1a1a1a; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .3s; opacity: .85; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); }
.tile span { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.tile small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #e8c47c; margin-bottom: 4px; }

/* gallery */
.gallery { column-width: 250px; column-gap: 14px; margin-top: 18px; }
.gallery a { display: block; break-inside: avoid; margin: 0 0 14px; position: relative; background: var(--bg2); }
.gallery img { width: 100%; }
.gallery a.video::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.7); background: rgba(0,0,0,.18); }
.project { margin: 0 0 54px; }
.project h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .15em; }
.project .credits { color: var(--muted); font-size: .9rem; margin: 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.subnav a { border: 1px solid var(--line); padding: 7px 16px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.subnav a[aria-current], .subnav a:hover { border-color: var(--accent); color: var(--accent); }

/* article */
.prose { max-width: 720px; margin: 0 auto; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose img { margin: 0 auto; }
.prose a { color: var(--accent); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose iframe, .prose .video { width: 100%; aspect-ratio: 16/9; border: 0; margin: 0 0 1.25em; }
.post-head { text-align: center; max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 70px) 0 28px; }
.post-head .meta { margin-bottom: 14px; }
.post-head .meta a { text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 34px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .72rem; letter-spacing: .08em; border: 1px solid var(--line); padding: 3px 10px; color: var(--muted); }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; }
.postnav a { text-decoration: none; } .postnav .next { text-align: right; }
.postnav small { display: block; font: .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.teaser-note { border-left: 3px solid var(--accent); padding: 12px 18px; background: var(--bg2); color: var(--muted); font-size: .95rem; margin: 26px 0; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 46px; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; font-size: .85rem; }
.pager span { border-color: var(--accent); color: var(--accent); }

/* placeholder for missing images: ONE image, labelled so it can be found and replaced */
figure.ph { position: relative; margin: 0 0 1.4em; background: #f3dfe5; }
figure.ph img { width: 100%; height: auto; }
.card .thumb figure.ph, .tile figure.ph { margin: 0; height: 100%; }
.card .thumb figure.ph img { height: 100%; object-fit: cover; }
.ph-tag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); background: #d6006f; color: #fff; font: 500 11px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .02em; padding: 3px 7px; word-break: break-all; }
.hero-feature { max-width: 720px; margin: 0 auto 30px; }
.prose figure.ph { max-width: 640px; margin-left: auto; margin-right: auto; }

/* forms */
form.contact { display: grid; gap: 16px; max-width: 560px; }
form.contact label { display: grid; gap: 6px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
form.contact input, form.contact textarea { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; padding: 12px 14px; background: var(--bg2); color: var(--text); border: 1px solid var(--line); }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li { margin: 4px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 36px; font-size: .88rem; color: var(--muted); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { text-decoration: none; letter-spacing: .08em; }
.site-footer .copy { margin-top: 26px; font-size: .8rem; }
.switch-banner { background: var(--bg2); border: 1px solid var(--line); padding: 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.switch-banner h3 { margin: 0 0 4px; }
.switch-banner p { margin: 0; color: var(--muted); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 18px 70px; }
.lb.open { display: flex; }
.lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-stage iframe { width: min(1000px, 96vw); aspect-ratio: 16/9; border: 0; background: #000; }
.lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #d8d3cb; font-size: .9rem; padding: 0 70px; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.2rem; padding: 10px 16px; line-height: 1; opacity: .8; }
.lb button:hover { opacity: 1; color: var(--accent); }
.lb .x { top: 8px; right: 8px; } .lb .p { left: 4px; top: 50%; } .lb .n { right: 4px; top: 50%; }
.lb .count { position: absolute; top: 18px; left: 22px; color: #aaa; font-size: .8rem; letter-spacing: .15em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
