/* ── Edits By M — Shared Stylesheet ─────────────────────────────── */

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

:root {
  --forest:      #111a0e;
  --forest-mid:  #1e2e19;
  --forest-lift: #2a3d24;
  --linen:       #ede8dc;
  --linen-dim:   #b8b2a6;
  --olive:       #7a8f64;
  --terra:       #c0522a;
  --terra-dim:   rgba(192,82,42,0.55);
  --rule:        rgba(237,232,220,0.1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Barlow Condensed', sans-serif;
  --body:  'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--forest);
  color: var(--linen);
  font-family: var(--body);
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* ── Grain ───────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 500; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Cursor ──────────────────────────────────────────────────────── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--terra); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, background .3s;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(192,82,42,.4); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, opacity .3s;
}
body.cursor-hover .cursor { width: 12px; height: 12px; background: var(--linen); }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; opacity: .6; }

/* ── Nav ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 56px;
  transition: background .4s, backdrop-filter .4s;
}
nav.scrolled {
  background: rgba(17,26,14,.85);
  backdrop-filter: blur(12px);
}
.nav-logo {
  text-decoration: none;
  font-family: var(--sans); font-size: 1rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--linen);
}
.nav-logo .by { color: var(--olive); margin: 0 .2em; }
.nav-logo .em { color: var(--terra); }
.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 1rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--linen-dim); text-decoration: none; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--linen); }

/* ── Page header (inner pages) ───────────────────────────────────── */
.page-header {
  padding: 160px 56px 80px;
  border-bottom: 1px solid var(--rule);
}
.page-header-eyebrow {
  font-family: var(--sans); font-size: 1rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 16px;
}
.page-header-title {
  font-family: var(--serif); font-size: clamp(3rem,6vw,5.5rem);
  font-weight: 600; line-height: .98; color: var(--linen);
}
.page-header-title em { font-style: italic; color: var(--terra); }

/* ── Section label ───────────────────────────────────────────────── */
.section-label {
  display: flex; align-items: center; gap: 20px; padding: 0 56px;
}
.section-label span {
  font-family: var(--sans); font-size: 1rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--olive); white-space: nowrap;
}
.section-label-line { flex: 1; height: 1px; background: var(--rule); }

/* ── Project list row ────────────────────────────────────────────── */
.project-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 120px;
  align-items: center; gap: 40px;
  padding: 30px 56px;
  border-bottom: 1px solid var(--rule);
  position: relative; cursor: none;
  background: transparent;
  transition: background .3s, opacity .7s ease, transform .7s ease;
  opacity: 0; transform: translateY(20px);
}
.project-item.visible { opacity: 1; transform: translateY(0); }
.project-item:hover { background: var(--forest-mid); }
.project-item:hover .project-thumb-preview { opacity: 1; transform: translateY(-50%) scale(1); }
.project-item:hover .project-arrow { color: var(--terra); }
.project-item:hover .project-num { color: rgba(237,232,220,.6); }
.project-item:hover .ptag { color: rgba(237,232,220,.5); border-color: rgba(237,232,220,.2); }

.project-thumb-preview {
  position: absolute; right: 180px; top: 50%;
  transform: translateY(-50%) scale(.95);
  width: 270px; aspect-ratio: 16/9; overflow: hidden;
  pointer-events: none; opacity: 0; z-index: 10;
  transition: opacity .35s ease, transform .35s ease;
}
.project-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }

.project-num {
  font-family: var(--sans); font-size: .65rem; letter-spacing: .14em;
  color: rgba(237,232,220,.6);
}
.project-title-cell {
  font-family: var(--serif); font-size: 1.9rem;
  font-weight: 600; color: var(--linen); letter-spacing: -.01em;
}
.project-title-cell em { font-style: italic; color: var(--olive); }
.project-meta-cell { display: flex; flex-direction: column; gap: 6px; }
.project-cat {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--terra);
}
.ptags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(237,232,220,.28);
  border: 1px solid rgba(237,232,220,.1); padding: 3px 8px;
  transition: color .2s, border-color .2s;
}
.project-arrow {
  font-family: var(--sans); font-size: .65rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(237,232,220,.2);
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  text-decoration: none; transition: color .2s;
}

/* ── Feature strip ───────────────────────────────────────────────── */
.feature {
  position: relative; height: 80vh; overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.feature.visible { opacity: 1; transform: translateY(0); }
.feature img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(17,26,14,.88) 0%, rgba(17,26,14,.2) 60%);
}
.feature-content {
  position: absolute; bottom: 72px; left: 56px; z-index: 2; max-width: 480px;
}
.feature-eyebrow {
  font-family: var(--sans); font-size: .63rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--terra-dim); margin-bottom: 14px;
}
.feature-title {
  font-family: var(--serif); font-size: clamp(3rem,6vw,5.5rem);
  font-weight: 600; line-height: .95; color: var(--linen); margin-bottom: 18px;
}
.feature-title em { font-style: italic; color: rgba(237,232,220,.4); }
.feature-body {
  font-size: .9rem; font-weight: 400; line-height: 1.78;
  color: rgba(237,232,220,.45); margin-bottom: 32px;
}
.feature-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 1.1rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--terra); text-decoration: none;
  border-bottom: 1px solid rgba(192,82,42,.35); padding-bottom: 3px;
}
.feature-tc {
  position: absolute; bottom: 28px; right: 56px;
  font-family: var(--sans); font-size: .6rem; letter-spacing: .14em;
  color: rgba(237,232,220,.15); z-index: 2;
}
.feature-ar {
  position: absolute; top: 28px; right: 56px;
  font-family: var(--sans); font-size: .6rem; letter-spacing: .1em;
  color: rgba(237,232,220,.18); border: 1px solid rgba(237,232,220,.1);
  padding: 3px 7px; z-index: 2;
}

/* ── Clients ─────────────────────────────────────────────────────── */
.clients {
  border-top: 1px solid var(--rule);
  padding: 80px 56px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.clients.visible { opacity: 1; transform: translateY(0); }
.clients-label {
  font-family: var(--sans); font-size: 1rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--olive);
  margin-bottom: 52px; display: block;
}
.clients-names {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; border-top: 1px solid var(--rule);
}
.client {
  padding: 44px 32px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  transition: background .3s;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.client:first-child { padding-left: 32px; }
.client:last-child { border-right: none; }
.client:hover { background: var(--forest-mid); }

/* Logo mark */
.client-logo {
  display: block; height: 48px; width: auto;
  opacity: .45; transition: opacity .3s;
}
.client:hover .client-logo { opacity: .85; }

/* Fallback text name (hidden when logo is present) */
.client-name {
  font-family: var(--sans); font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 700; letter-spacing: -.01em; text-transform: uppercase;
  color: var(--linen); line-height: 1; transition: color .2s;
}
.client:hover .client-name { color: var(--linen); }
.client-type {
  font-family: var(--sans); font-size: .85rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--olive);
}

/* ── CTA button ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: 14px 28px;
  transition: background .25s, color .25s;
}
.btn-primary {
  background: var(--terra); color: var(--linen);
}
.btn-primary:hover { background: #a84422; }
.btn-outline {
  border: 1px solid rgba(237,232,220,.25); color: var(--linen);
}
.btn-outline:hover { border-color: var(--terra); color: var(--terra); }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule); padding: 24px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  text-decoration: none; font-family: var(--sans);
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(237,232,220,.2);
}
.footer-logo .by { color: rgba(122,143,100,.4); margin: 0 .18em; }
.footer-logo .em { color: rgba(192,82,42,.35); }
.footer-copy {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .12em;
  color: rgba(237,232,220,.12);
}

/* ── Video Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,17,9,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-inner {
  position: relative; width: min(90vw, 1100px);
}
.modal-video-wrap {
  position: relative; padding-top: 56.25%;
  background: #000;
}
.modal-video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none;
}
.modal-close {
  position: absolute; top: -44px; right: 0;
  font-family: var(--sans); font-size: .65rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(237,232,220,.4); background: none; border: none;
  cursor: none; display: flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.modal-close:hover { color: var(--linen); }
.modal-title {
  margin-top: 20px;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  color: var(--linen);
}
.modal-title em { font-style: italic; color: var(--olive); }
.modal-cat {
  margin-top: 6px;
  font-family: var(--sans); font-size: .65rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--terra);
}

/* ── Form ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 28px; }
.form-label {
  display: block;
  font-family: var(--sans); font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--olive); margin-bottom: 10px;
}
.form-input,
.form-textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(237,232,220,.2);
  padding: 10px 0; color: var(--linen);
  font-family: var(--body); font-size: .95rem; font-weight: 400;
  outline: none; transition: border-color .2s;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--terra); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(237,232,220,.2); }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .page-header { padding: 120px 24px 56px; }
  .section-label { padding: 0 24px; }
  .project-item {
    grid-template-columns: 40px 1fr;
    gap: 16px; padding: 22px 24px;
  }
  .project-meta-cell,
  .project-arrow,
  .project-thumb-preview { display: none; }
  .feature-content { left: 24px; bottom: 40px; }
  .feature-tc { right: 24px; }
  .feature-ar { display: none; }
  .clients { padding: 40px 24px; }
  .clients-names { grid-template-columns: 1fr; }
  .client { padding: 24px 20px; border-right: none; }
  .client:nth-child(2n) { border-right: none; }
  .client:nth-child(n+2) { border-top: 1px solid var(--rule); }
  footer { padding: 20px 24px; }
}

/* ── Touch devices: restore cursor so taps work ──────────────────── */
@media (hover: none), (pointer: coarse) {
  body, * { cursor: auto !important; }
  .cursor, .cursor-ring { display: none !important; }
}
