/* ─── SENES MEDIA · design tokens ───────────────────────────────── */
:root {
  --red: #ED3225;
  --red-bright: #FF5746;
  --red-deep: #BC2418;
  --red-soft: #FF7A6B;
  --navy: #14213D;

  --ink: #0A0A0B;
  --ink-2: #0F0F11;
  --ink-3: #16161A;
  --ink-4: #1E1E22;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);

  --paper: #ECE8E1;
  --paper-2: #B8B3AB;
  --paper-3: #6F6B65;
  --paper-4: #44423E;

  /* gray frame around letterboxed card */
  --frame: #E7E5E2;

  --serif: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --easing: cubic-bezier(0.65, 0, 0.35, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);

  --card-radius: 28px;
  --frame-pad: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--frame); color: var(--paper); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: auto;
  padding: var(--frame-pad);
  min-height: 100vh;
}
@media (max-width: 720px) { body { padding: 8px; } }

a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--red); color: var(--ink); }
* { cursor: revert; }
[data-cursor] { cursor: pointer; }
[data-cursor="text"], input, textarea, .my-text-field { cursor: text; }

/* ─── letterbox shell ─────────────────────────── */
#root {
  background: var(--ink);
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: calc(100vh - 2 * var(--frame-pad));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
  position: relative;
}
@media (max-width: 720px) { #root { border-radius: 16px; } }

/* ─── type ──────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display .it { font-style: italic; font-weight: 400; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.eyebrow.no-dot::before { display: none; }

/* ─── custom cursor ─────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--easing-out);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--easing-out), height 0.25s var(--easing-out),
              border-color 0.2s, background-color 0.2s;
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--red-bright);
  background: rgba(230, 51, 39, 0.08);
}
.cursor-ring.text {
  width: 3px; height: 26px;
  border-radius: 2px; border-color: transparent;
  background: var(--paper);
}
.cursor-ring.drag {
  width: 74px; height: 74px;
  background: var(--red); border-color: var(--red);
}
.cursor-label {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 4px 8px;
  border-radius: 100px;
  transform: translate(20px, 20px);
  opacity: 0;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.cursor-label.show { opacity: 1; }
@media (max-width: 720px) { .cursor-dot, .cursor-ring, .cursor-label { display: none; } }

/* ─── floating center-pill nav ──────────────── */
.nav {
  position: fixed;
  top: var(--frame-pad);
  left: var(--frame-pad);
  right: var(--frame-pad);
  z-index: 100;
  padding: 22px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(10,10,11,0.75), rgba(10,10,11,0.35) 70%, transparent);
  border-radius: calc(var(--card-radius) - 2px) calc(var(--card-radius) - 2px) 0 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.nav-logo-img { height: 60px; width: auto; display: block; }
@media (max-width: 880px) { .nav-logo-img { height: 48px; } }
.nav-logo .estd {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.05;
  letter-spacing: 0.1em;
  color: var(--paper-3);
  margin: 0 6px 0 2px;
  text-align: right;
}
.nav-logo .media {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--paper-3);
  margin-left: 4px;
  letter-spacing: 0.18em;
}
.nav-links {
  display: flex; gap: 2px;
  background: rgba(20, 20, 22, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 6px;
  justify-self: center;
}
.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 10px 22px;
  border-radius: 100px;
  position: relative;
  color: var(--paper-2);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--paper); }
.nav-link.active {
  color: #fff;
  background: var(--red);
  box-shadow: 0 8px 24px -8px rgba(230, 51, 39, 0.6);
}
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  transition: background 0.2s;
  box-shadow: 0 8px 24px -8px rgba(230, 51, 39, 0.5);
}
.nav-cta:hover { background: var(--red-bright); }
/* hamburger — hidden on desktop */
.nav-burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  z-index: 130;
  justify-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.35s var(--easing-out), opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown menu */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120;
  width: min(320px, calc(100vw - 32px));
  background: rgba(16, 16, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.97); transform-origin: top right;
  transition: opacity 0.3s var(--easing-out), transform 0.3s var(--easing-out), visibility 0.3s;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-dropdown-links { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--paper);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s var(--easing-out), transform 0.3s var(--easing-out), background 0.2s;
}
.nav-dropdown.open .nav-dropdown-link { opacity: 1; transform: translateY(0); }
.nav-dropdown-link:hover, .nav-dropdown-link:active { background: rgba(255, 255, 255, 0.06); }
.nav-dropdown-link.active { background: rgba(230, 51, 39, 0.1); color: var(--red); }
.nav-dropdown-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--paper-3); min-width: 20px; }
.nav-dropdown-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: auto; box-shadow: 0 0 8px rgba(230, 51, 39, 0.5); }
.nav-dropdown-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 4px 12px; }
.nav-dropdown-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 4px; padding: 14px 20px; border-radius: 12px;
  background: var(--red); color: #fff;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.3s var(--easing-out), transform 0.3s var(--easing-out), background 0.2s;
  box-shadow: 0 8px 20px -8px rgba(230, 51, 39, 0.4);
}
.nav-dropdown.open .nav-dropdown-cta { opacity: 1; transform: translateY(0); }
.nav-dropdown-cta:hover { background: var(--red-bright); }
.nav-dropdown-foot { padding: 10px 16px 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-3); text-align: center; }

@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 981px) {
  .nav-dropdown, .nav-burger { display: none; }
}

/* background zoom animation */
.bg-zoom { animation: bgZoom 12s ease-in-out infinite alternate; will-change: transform; }
@keyframes bgZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

/* ─── buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 12px 32px -12px rgba(230, 51, 39, 0.6); }
.btn.primary:hover { background: var(--red-bright); }
.btn.ghost {
  background: rgba(255,255,255,0.05);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.btn.ghost:hover { background: rgba(255,255,255,0.08); }
.btn.dark {
  background: rgba(20, 20, 22, 0.85);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.btn .arrow { width: 14px; height: 14px; transition: transform 0.3s var(--easing-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ─── page anim ─────────────────────────── */
.page-anim { animation: fade-in 0.5s var(--easing-out); }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── containers ─────────────────────────── */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 880px) { .container { padding: 0 24px; } }

.page { width: 100%; min-height: 100%; }
.section { padding: 100px 0; }
.section.tight { padding: 64px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head .title { font-size: clamp(40px, 5vw, 72px); }
.section-head .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--paper-3); text-transform: uppercase; text-align: right; }

/* ─── Designova-style page hero (used on inner pages) ─ */
.page-hero {
  position: relative;
  min-height: clamp(640px, 84vh, 880px);
  display: flex;
  align-items: flex-end;
  padding: 0 56px 56px;
  padding-top: 120px;
  overflow: hidden;
}
@media (max-width: 880px) { .page-hero { padding: 120px 24px 32px; } }
.page-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(10,10,11,0.85) 35%, rgba(10,10,11,0.4) 65%, rgba(10,10,11,0.15) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; width: 100%;
  align-items: end;
}
@media (max-width: 980px) { .page-hero-content { grid-template-columns: 1fr; } }
.page-hero-left { max-width: 640px; }
.page-hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  background: rgba(20, 20, 22, 0.7);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 32px;
}
.page-hero-pill .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  font-weight: 500;
}
.page-hero-title .it { font-style: italic; font-weight: 400; color: var(--red); }
.page-hero-blurb {
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper-2);
  margin-bottom: 36px;
  max-width: 540px;
}
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* glass info-bar at bottom of designova hero */
.info-bar {
  position: relative;
  z-index: 3;
  margin: -32px 56px 56px;
  padding: 28px 36px;
  background: rgba(20, 20, 22, 0.5);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) {
  .info-bar { grid-template-columns: 1fr; margin: -32px 16px 32px; padding: 24px; }
}
.info-cell {
  position: relative;
  padding-left: 22px;
}
.info-cell:not(:last-child) { border-right: 1px solid var(--line); padding-right: 32px; }
.info-cell .corner {
  position: absolute; top: 0; left: 0;
  width: 12px; height: 12px;
  border-top: 1px solid var(--paper-3);
  border-left: 1px solid var(--paper-3);
}
.info-cell h4 {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--paper);
}
.info-cell p { font-size: 14px; line-height: 1.4; color: var(--paper-2); }

/* ─── footer ────────────────────────────── */
.footer {
  padding: 100px 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
@media (max-width: 880px) { .footer { padding: 60px 24px 24px; } }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-big {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-big .it { font-style: italic; color: var(--red); }
.footer-row {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.footer h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 400;
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 15px; color: var(--paper); transition: color 0.2s; }
.footer ul a:hover { color: var(--red); }

/* ─── work card (used across pages) ─────────── */
.work-grid { display: grid; gap: 28px; }
.work-grid.layout-default { grid-template-columns: repeat(2, 1fr); }
.work-grid.layout-grid    { grid-template-columns: repeat(3, 1fr); }
.work-grid.layout-list    { grid-template-columns: 1fr; gap: 0; }
.work-grid.layout-stagger { grid-template-columns: repeat(2, 1fr); }
.work-grid.layout-stagger > :nth-child(even) { margin-top: 64px; }
@media (max-width: 880px) {
  .work-grid.layout-default, .work-grid.layout-grid, .work-grid.layout-stagger { grid-template-columns: 1fr; }
  .work-grid.layout-stagger > :nth-child(even) { margin-top: 0; }
}
.work-card { display: block; position: relative; }
.work-thumb { position: relative; overflow: hidden; border-radius: 18px; }
.work-thumb > div:first-child { transition: transform 0.7s var(--easing-out); }
.work-card:hover .work-thumb > div:first-child { transform: scale(1.03); }
.work-cover {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-overlay {
  position: absolute; top: 18px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: start;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: #fff;
}
.work-arrow {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--easing-out), background 0.3s;
}
.work-card:hover .work-arrow { background: var(--red); color: #fff; transform: rotate(-45deg); }
.work-meta {
  display: flex; justify-content: space-between; align-items: start;
  padding: 18px 4px 4px;
}
.work-name { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; line-height: 1.1; }
.work-cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-3); margin-top: 6px; }
.work-year { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--paper-3); padding-top: 6px; }
.layout-list .work-card { display: grid; grid-template-columns: 80px 1.5fr 1fr 1fr 80px; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.layout-list .work-thumb { display: none; }
.layout-list .work-meta { display: contents; }

/* ─── reveal (subtle, re-triggerable) ─────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--easing-out), transform 0.7s var(--easing-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* auto-reveal — applied to most page content via JS, re-triggers on scroll */
.auto-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--easing-out), transform 0.65s var(--easing-out);
  transition-delay: var(--ar-delay, 0ms);
  will-change: opacity, transform;
}
.auto-reveal.ar-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .auto-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── Mobile responsive adjustments ─────── */
@media (max-width: 880px) {
  :root { --card-radius: 16px; --frame-pad: 8px; }
  body { padding: var(--frame-pad); }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 40px 0; }
  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
    gap: 16px;
  }
  .section-head .meta { text-align: left; }
  .nav { padding: 14px 20px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; }
  .nav-logo .estd, .nav-logo .media { display: none; }
  .page-hero { padding: 100px 20px 28px; min-height: 520px; }
  .page-hero-title { font-size: clamp(44px, 12vw, 72px) !important; }
  .page-hero-bg::after {
    background: linear-gradient(180deg, var(--ink) 0%, rgba(10,10,11,0.7) 45%, rgba(10,10,11,0.85) 100%);
  }
  .info-bar {
    grid-template-columns: 1fr;
    margin: -24px 12px 24px;
    padding: 20px;
    gap: 20px;
    text-align: center;
  }
  .info-cell { padding-left: 0; }
  .info-cell .corner { display: none; }
  .info-cell h4 { font-size: 18px; }
  .info-cell:not(:last-child) { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .footer { padding: 56px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .footer-big { font-size: clamp(40px, 12vw, 64px); padding-top: 40px; margin-top: 24px; }
  .footer-row { flex-direction: column; gap: 12px; text-align: left; margin-top: 40px; }
}
@media (max-width: 720px) {
  .nav-logo { font-size: 18px; gap: 6px; }
}
