/* Amarjot Singh — Portfolio
   Editorial cinema. Fraunces display + Inter UI. */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #141414;
  --fg: #f5f5f0;
  --fg-dim: #9a9a92;
  --fg-muted: #5a5a55;
  --rule: rgba(245, 245, 240, 0.12);
  --rule-strong: rgba(245, 245, 240, 0.28);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

/* Subtle film grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: #fff;
}

.nav-mark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.nav-mark sup {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: super;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  position: relative;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}

.nav-links a:hover { opacity: 1; }

.nav-links a::before { content: none; }

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* HERO ------------------------------------------------------ */
.hero {
  min-height: 100vh;
  padding: 106px clamp(32px, 6vw, 88px) 52px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(18px, 3.2vw, 42px);
  align-items: start;
  position: relative;
}

.hero-left {
  padding-top: clamp(14px, 2.6vh, 32px);
  max-width: 54ch;
  padding-left: clamp(8px, 1.2vw, 18px);
}

.hero-meta-top {
  position: absolute;
  top: 100px;
  left: var(--pad);
  right: var(--pad);
  display: flex;
  justify-content: flex-start;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero-meta-top span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-meta-top span::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--fg-muted);
  display: inline-block;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7.2vw, 116px);
  line-height: 0.97;
  letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}

.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero-title .ampersand {
  font-style: italic;
  font-weight: 300;
  display: inline-block;
  transform: translateY(0.08em);
  color: var(--fg-dim);
}

.hero-tagline {
  margin-top: 34px;
  max-width: 40ch;
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.55;
  color: var(--fg-dim);
  font-weight: 400;
}

.hero-tagline em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg);
  font-weight: 400;
}

.hero-ctas {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--rule-strong);
}

.btn-primary {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.btn .arrow {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
}

.btn:hover .arrow { transform: translateX(3px); }
.btn .arrow { transition: transform 0.3s var(--ease); }

/* Showreel block on right */
.hero-reel {
  position: relative;
  aspect-ratio: 9 / 14;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  overflow: hidden;
  width: min(100%, 420px);
  max-height: 74vh;
  justify-self: end;
}

.hero-reel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-reel-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #1a1410 0%, #0d0a08 50%, #2a1f15 100%);
}

.hero-reel-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(232, 183, 90, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(245, 245, 240, 0.04) 0%, transparent 50%);
}

.hero-reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  z-index: 2;
}

.hero-reel-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  justify-content: space-between;
}

.hero-reel-tag .live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #d94a2a;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-reel-play {
  align-self: flex-start;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(245,245,240,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease);
}

.hero-reel:hover .hero-reel-play {
  background: var(--fg);
  border-color: var(--fg);
  transform: scale(1.05);
}

.hero-reel-play svg { fill: var(--fg); transition: fill 0.4s var(--ease); }
.hero-reel:hover .hero-reel-play svg { fill: #000; }

.hero-reel-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--fg);
  line-height: 1.3;
}

.hero-reel-caption small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* Marquee at bottom of hero */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--fg-dim);
  white-space: nowrap;
}

.hero-marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 60s linear infinite;
  padding-left: 48px;
}

.hero-marquee-track span::before {
  content: "✦";
  margin-right: 48px;
  color: var(--fg-muted);
  font-style: normal;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 140px;
    padding-bottom: 100px;
  }
  .hero-left {
    padding-top: 0;
    max-width: none;
    padding-left: 0;
  }
  .hero-reel {
    aspect-ratio: 4 / 5;
    max-height: 44vh;
    width: 100%;
    justify-self: stretch;
  }
  .hero-meta-top {
    font-size: 12px;
    top: 96px;
  }
}

/* SECTION HEADER ------------------------------------------- */
.section {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  position: relative;
}

#work.section {
  padding-top: clamp(46px, 7vh, 84px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}

.section-head-center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--fg-muted);
  display: inline-block;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 6.8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section-title .italic { font-style: italic; }

.section-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: right;
  line-height: 1.8;
}

/* WORK GRID ------------------------------------------------ */
.work-grid {
  column-count: 3;
  column-gap: 20px;
}

.work-card {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
}

.work-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.work-feature .work-thumb {
  aspect-ratio: 4 / 5;
}

/* Video format helpers for mixed media in work cards */
.work-card.format-landscape .work-thumb { aspect-ratio: 16 / 9; }
.work-card.format-portrait .work-thumb {
  aspect-ratio: 3 / 4;
  max-height: min(70vh, 560px);
}
.work-card.format-45 .work-thumb { aspect-ratio: 4 / 5; }

.work-thumb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

/* Colored placeholder fills with a play icon */
.work-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s var(--ease);
}

.work-thumb-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.work-card:hover .work-thumb-placeholder {
  transform: scale(1.04);
}

.work-card:hover .work-thumb-media {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.work-thumb-play {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(245,245,240,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  transition: all 0.4s var(--ease);
  opacity: 0;
}

.work-card:hover .work-thumb-play {
  opacity: 1;
  background: var(--fg);
  border-color: var(--fg);
}

.work-thumb-play svg { fill: var(--fg); }
.work-card:hover .work-thumb-play svg { fill: #000; }

.work-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245,245,240,0.7);
}

.work-num { display: none; }

.work-cat {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.7);
  padding: 4px 10px;
  border: 1px solid rgba(245,245,240,0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.work-meta {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
}

.work-grid .work-meta {
  display: none;
}

.work-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.work-meta .work-title {
  display: none;
}

.work-title .italic { font-style: italic; color: var(--fg-dim); font-weight: 300; font-size: 18px; }

.work-client {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.work-feature .work-title { font-size: 32px; }

/* Placeholder palettes — colored cards with character */
.pal-1 { background: linear-gradient(135deg, #2a1810 0%, #1a0e08 100%); }
.pal-2 { background: linear-gradient(135deg, #0f1a1c 0%, #050a0c 100%); }
.pal-3 { background: linear-gradient(135deg, #1d1a14 0%, #0a0908 100%); }
.pal-4 { background: linear-gradient(135deg, #1a0f1a 0%, #0a050a 100%); }
.pal-5 { background: linear-gradient(135deg, #1a1410 0%, #0d0907 100%); }
.pal-6 { background: linear-gradient(135deg, #14181f 0%, #07090d 100%); }
.pal-7 { background: linear-gradient(135deg, #1f1714 0%, #0e0a08 100%); }
.pal-8 { background: linear-gradient(135deg, #0f1414 0%, #050808 100%); }

.work-cta {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .work-grid { column-count: 2; }
  .work-feature .work-title { font-size: 24px; }
}

@media (max-width: 560px) {
  .work-grid { column-count: 1; }
}

/* CLIENTS STRIP -------------------------------------------- */
.clients {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 40px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.clients-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  max-width: 18ch;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.clients-label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--fg-muted);
  display: inline-block;
}

.clients-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  flex-wrap: wrap;
  align-items: center;
}

.clients-list span {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 34px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}

.clients-list span:hover {
  color: var(--fg);
}

.clients-list span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: calc(-0.5 * clamp(18px, 3vw, 32px) - 4px);
  color: var(--fg-muted);
}

@media (max-width: 720px) {
  .clients {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .clients-list { gap: 16px 24px; }
}

/* ABOUT ---------------------------------------------------- */
.about {
  padding: clamp(88px, 12vh, 130px) var(--pad);
  text-align: left;
  max-width: var(--max);
  margin: 0 auto;
}

.about-quote {
  margin-top: clamp(34px, 5vh, 72px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 22ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.about-quote .italic { font-style: italic; color: var(--fg-dim); }
.about-quote .accent { font-style: italic; }

.about-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}

.about-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.about-meta-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-meta-value.italic { font-style: italic; }

@media (max-width: 720px) {
  .about-meta { grid-template-columns: repeat(2, 1fr); }
}

/* SERVICES ------------------------------------------------- */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 0.5s var(--ease);
}

.service-row:last-child { border-bottom: 1px solid var(--rule); }

.service-row:hover {
  padding-left: 16px;
}

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.service-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}

.service-row:hover .service-title { font-style: italic; }

.service-title .label-sub {
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-dim);
  margin-left: 18px;
  display: inline-block;
  transform: translateY(-0.4em);
}

.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 280px;
}

.service-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

@media (max-width: 720px) {
  .service-row { grid-template-columns: 56px 1fr; }
  .service-tags { display: none; }
}

/* CONTACT -------------------------------------------------- */
.contact {
  padding: clamp(100px, 16vh, 180px) var(--pad) 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--rule);
  align-items: stretch;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.contact-headline .italic { font-style: italic; color: var(--fg-dim); }

.contact-sub {
  margin-top: 28px;
  max-width: 36ch;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}

.contact-channels {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.contact-channel {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.3s var(--ease);
}

.contact-channel:last-child { border-bottom: 1px solid var(--rule); }

.contact-channel-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  font-weight: 400;
}

.contact-channel:hover { color: var(--fg-dim); }
.contact-channel:hover .contact-channel-value { text-decoration: underline; text-underline-offset: 6px; }

.contact-channel svg { width: 16px; height: 16px; opacity: 0.5; }

/* form */
.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: stretch;
  justify-content: space-between;
}

.form-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
  outline: none;
  font-weight: 400;
  transition: border-color 0.3s var(--ease);
  width: 100%;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--fg-muted);
  font-style: italic;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--fg);
}

.form-row textarea {
  resize: none;
  min-height: 90px;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4 L5 7 L8 4' stroke='%239a9a92' fill='none' stroke-width='1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-submit {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .contact-form { padding: 24px; }
}

/* FOOTER --------------------------------------------------- */
.footer {
  padding: 40px var(--pad);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-mid {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-dim);
}

.footer-right { text-align: right; }

.footer a { color: var(--fg-dim); transition: color 0.3s var(--ease); }
.footer a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Big timestamp at section bottom decoration */
.section-tail {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
