/* ============================================================
   Variables
   ============================================================ */
:root {
  --bg:             #0c0b09;
  --bg-hover:       #111009;
  --text-primary:   #e8e1d4;
  --text-secondary: #a39989;
  --text-muted:     #3d3830;
  --border:         #211f19;
  --accent:         #b8996a;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1160px;
  --gutter: clamp(24px, 5vw, 60px);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Site Wrapper — creates the editorial column feel on wide screens
   ============================================================ */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.header-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.header-nav a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 3fr 2fr;
  border-bottom: 1px solid var(--border);
  min-height: 44vh;
}

.hero-left {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.glass-canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  display: block;
}

.hero-left-content {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-right {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 2;
}

.hero-greeting {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin-top: 24px;
}

.hero-greeting em {
  font-style: italic;
  color: var(--text-secondary);
}

/* Gold foil — blink and you'll miss it */
.foil {
  background: linear-gradient(
    100deg,
    #7a7268 20%,
    #7c705f 33%,
    #8e7856 43%,
    #9a825b 50%,
    #8e7856 57%,
    #7c705f 67%,
    #7a7268 80%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: foil-drift 16s ease-in-out infinite;
}

@keyframes foil-drift {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

.hero-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.hero-body + .hero-body {
  margin-top: 18px;
}

/* ============================================================
   Work
   ============================================================ */
.work {
  border-bottom: 1px solid var(--border);
}

.work-header {
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Grid trick: bg = border color, gap = 1px draws the lines */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
}

.work-grid--three {
  grid-template-columns: repeat(3, 1fr);
}



.work-item {
  background-color: var(--bg);
  transition: background-color 0.2s ease;
}

.work-item:hover {
  background-color: var(--bg-hover);
}

.work-item--video-bg {
  position: relative;
  overflow: hidden;
}

.work-item-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.work-item-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 9, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.work-item--video-bg:hover .work-item-video-overlay {
  opacity: 0;
}

.work-item--video-bg .work-item-inner {
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.work-item--video-bg:hover .work-item-inner {
  opacity: 0;
}

.work-item--video-bg .work-desc {
  color: rgba(232, 225, 212, 0.75);
}

.work-item--video-bg .work-link {
  color: rgba(232, 225, 212, 0.45);
}

.work-item--video-bg .work-link:hover {
  color: var(--text-primary);
}

.work-item--featured {
  grid-column: span 2;
}

.obvious-hero {
  position: relative;
  overflow: hidden;
}

.work-item-inner {
  padding: clamp(32px, 4vw, 52px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.work-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.work-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 7px;
  opacity: 0.85;
}

.work-company {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.work-item--featured .work-company {
  font-size: clamp(28px, 4.5vw, 52px);
}

/* ============================================================
   Obvious — slots
   ============================================================ */
.obvious-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: clamp(20px, 3vw, 32px) var(--gutter) clamp(40px, 5vw, 60px);
}

.obvious-card {
  background: #111009;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.obvious-card:hover {
  border-color: var(--text-muted);
  background-color: #161410;
}

.obvious-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.obvious-card-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

.obvious-card-play {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232, 225, 212, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.obvious-card:hover .obvious-card-play {
  border-color: rgba(232, 225, 212, 0.45);
}

.obvious-card-play svg {
  width: 9px;
  height: 10px;
  fill: var(--text-secondary);
  margin-left: 2px;
}

.obvious-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.obvious-card-title {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
}

.obvious-card-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.obvious-card--link {
  justify-content: space-between;
}

.obvious-card--link .obvious-card-body {
  justify-content: space-between;
  height: 100%;
}

.obvious-card--link .obvious-card-title {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 4px;
}

.obvious-card-arrow {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  align-self: flex-end;
  transition: color 0.2s ease;
}

.obvious-card:hover .obvious-card-arrow {
  color: var(--accent);
}

/* ============================================================
   Obvious — image
   ============================================================ */
.work-item-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  pointer-events: none;
  overflow: hidden;
}

.work-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-mask-image: linear-gradient(105deg, transparent 10%, black 70%);
  mask-image: linear-gradient(105deg, transparent 10%, black 70%);
}

/* Maats specific image positioning */
.work-item--maats .work-item-image img {
  width: 120%;
  object-position: right 20%;
  transform: translateX(20%);
}

.work-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 440px;
}

.work-item--featured .work-desc {
  font-size: 14px;
  max-width: 560px;
}

.work-item-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

.work-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.work-link:hover {
  color: var(--accent);
}

/* ============================================================
   Design Work Item
   ============================================================ */
.work-item--design {
  display: flex;
  flex-direction: column;
}

.work-item-gallery {
  display: flex;
  gap: 1px;
  background-color: var(--border);
  height: 400px;
  overflow: hidden;
}

.work-item-gallery img {
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
  cursor: pointer;
  flex-shrink: 0;
}

/* 4 images: 1 main + 3 slivers */
.work-item-gallery:has(img:nth-child(4)) img:first-child {
  width: 70%;
}

.work-item-gallery:has(img:nth-child(4)) img:not(:first-child) {
  width: calc(30% / 3);
}

.work-item-gallery:has(img:nth-child(4)) img:hover {
  width: 70%;
}

.work-item-gallery:has(img:nth-child(4)):has(img:hover) img:not(:hover) {
  width: calc(30% / 3);
}

/* 3 images: 1 main + 2 slivers */
.work-item-gallery:has(img:nth-child(3):last-child) img:first-child {
  width: 70%;
}

.work-item-gallery:has(img:nth-child(3):last-child) img:not(:first-child) {
  width: calc(30% / 2);
}

.work-item-gallery:has(img:nth-child(3):last-child) img:hover {
  width: 70%;
}

.work-item-gallery:has(img:nth-child(3):last-child):has(img:hover) img:not(:hover) {
  width: calc(30% / 2);
}

@media (max-width: 768px) {
  .work-item--design {
    grid-column: span 1;
  }

  .work-item-gallery {
    height: 300px;
  }
}

/* ============================================================
   Design Section Footer
   ============================================================ */
.design-footer {
  padding: clamp(24px, 3vw, 32px) var(--gutter);
  border-top: 1px solid var(--border);
  text-align: center;
}

.design-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  display: inline-block;
}

.design-link:hover {
  color: var(--accent);
}

/* ============================================================
   Section Divider
   ============================================================ */
.section-divider {
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.divider-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-right {
    justify-content: flex-start;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-grid--three {
    grid-template-columns: 1fr;
  }

  .work-item-image {
    display: none;
  }

  .obvious-slots {
    grid-template-columns: 1fr;
  }

  .work-item--featured {
    grid-column: span 1;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .header-nav {
    gap: 16px;
  }
}
