/* DeRosa Studios — one page, dark only, mobile-first. */

:root {
  color-scheme: dark;

  --black: #0d0c0b;      /* projector black */
  --black-2: #151311;
  --ivory: #ece6d8;      /* silver-screen ivory */
  --ivory-soft: #b9b2a3;
  /* Accent: terracotta (hearth, clay, made by hand).
     Alternates, swap in here to switch:
       sage olive #a9b08a   rgb(169, 176, 138)
       verdigris  #74a89b   rgb(116, 168, 155)
       brass      #c4a265   rgb(196, 162, 101)  (original; close to Dillon's amber and Ricky's gold)
     Also update the matching rgba() in .site-card:hover, favicon.svg and the og image. */
  --accent: #c9735a;
  --dusk: #4a5d82;
  --rose: #d9a5b3;
  --line: rgba(236, 230, 216, 0.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -2%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ivory);
  color: var(--black);
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Labels */
.eyebrow, .discipline, .bar-link, .tag {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 14px; color: var(--accent); }

/* Top bar */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: linear-gradient(to bottom, rgba(13, 12, 11, 0.75), transparent);
  transition: background-color 0.4s, backdrop-filter 0.4s;
}
.bar.is-scrolled {
  background-color: rgba(13, 12, 11, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.wordmark {
  font: 400 22px/1 var(--serif);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark span { font-style: italic; color: var(--accent); }
.bar-link {
  text-decoration: none;
  color: var(--ivory-soft);
  padding: 10px 0;
  transition: color 0.3s;
}
.bar-link:hover { color: var(--ivory); }

/* Hero: three portraits side by side, like a triptych on a screen */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-frames {
  position: absolute;
  inset: 0 0 26%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--black);
}
.frame { overflow: hidden; }
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.8);
  animation: drift 24s var(--ease) both;
}
.frame--dillon img { object-position: 50% 25%; }
.frame--ricky img  { object-position: 68% 30%; animation-delay: -4s; }
.frame--ryan img   { object-position: 40% 25%; animation-delay: -8s; }

@keyframes drift {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--black) 30%, rgba(13, 12, 11, 0.55) 52%, rgba(13, 12, 11, 0.1) 80%),
    radial-gradient(120% 60% at 50% 110%, rgba(74, 93, 130, 0.35), transparent 70%);
}

.hero-copy {
  width: 100%;
  padding: 0 var(--gutter) 96px;
}
.hero h1 {
  margin: 0;
  font: 400 clamp(44px, 12vw, 128px)/0.95 var(--serif);
  letter-spacing: -0.01em;
  max-width: 12ch;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.hero-sub {
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--ivory-soft);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}
.scroll-cue span {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Mission cascade */
.mission {
  padding: 112px var(--gutter) 96px;
  max-width: 1200px;
  margin: 0 auto;
}
.cascade {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  font: 400 clamp(40px, 10vw, 104px)/1.05 var(--serif);
}
.cascade li:nth-child(2) { padding-left: 8vw; transition-delay: 0.12s; }
.cascade li:nth-child(3) { padding-left: 16vw; transition-delay: 0.24s; }
.cascade em { color: var(--rose); }
.mission-body {
  max-width: 36em;
  margin: 0;
  color: var(--ivory-soft);
  font-size: 17px;
}

/* The brothers */
.brothers {
  padding: 48px var(--gutter) 120px;
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section-head { margin: 40px 0 48px; }
.section-head h2 {
  margin: 0;
  font: 400 clamp(36px, 8vw, 72px)/1 var(--serif);
}

.brother-grid {
  display: grid;
  gap: 72px;
}
.brother { display: flex; flex-direction: column; }
.portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--black-2);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.brother:hover .portrait img { transform: scale(1.03); filter: saturate(1); }
.discipline { margin: 0 0 8px; color: var(--accent); }
.brother h3 {
  margin: 0 0 10px;
  font: 400 clamp(34px, 8vw, 44px)/1.05 var(--serif);
}
.line {
  margin: 0 0 24px;
  font: italic 400 21px/1.35 var(--serif);
  color: var(--ivory-soft);
}

.site-card {
  margin-top: auto;
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--black-2);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.site-card:hover { border-color: rgba(201, 115, 90, 0.6); transform: translateY(-3px); }
.site-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.site-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.85;
  transition: opacity 0.4s, transform 1.2s var(--ease);
}
.site-card:hover .site-shot img { opacity: 1; transform: scale(1.03); }
.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 10px;
  background: rgba(13, 12, 11, 0.8);
  color: var(--rose);
  border: 1px solid rgba(217, 165, 179, 0.4);
}
.site-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 15px;
}
.site-go {
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}
.site-card:hover .site-go { transform: translateX(4px); }

/* Footer */
.foot {
  padding: 96px var(--gutter) max(40px, env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(80% 60% at 50% 0%, rgba(74, 93, 130, 0.18), transparent 70%);
}
.foot-line {
  margin: 0 0 20px;
  font: italic 400 clamp(32px, 8vw, 64px)/1.1 var(--serif);
}
.foot-mail {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}
.foot-mail span {
  font-weight: 400;
  color: var(--ivory-soft);
  font-size: 15px;
}
.foot-mail:hover span { color: var(--ivory); }
.foot-small {
  margin: 64px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(236, 230, 216, 0.4);
}

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Wider screens */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero-copy { padding-bottom: 120px; }
  .hero-frames { inset: 0; }
  .hero::before {
    background:
      linear-gradient(to top, var(--black) 4%, rgba(13, 12, 11, 0.6) 40%, rgba(13, 12, 11, 0.15) 75%),
      radial-gradient(120% 60% at 50% 110%, rgba(74, 93, 130, 0.35), transparent 70%);
  }
  .hero-sub { font-size: 19px; }
  .cascade li:nth-child(2) { padding-left: 12vw; }
  .cascade li:nth-child(3) { padding-left: 24vw; }
  .mission-body { margin-left: auto; font-size: 18px; }
}

@media (min-width: 1000px) {
  .hero {
    /* letterbox: frames sit between thin black bands */
    padding-block: 5vh;
  }
  .hero-frames { inset: 5vh 0; gap: 4px; }
  .brother-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .brother:nth-child(2) { margin-top: 64px; }
  .brother:nth-child(3) { margin-top: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .frame img, .scroll-cue span { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .portrait img, .site-card, .site-shot img, .site-go { transition: none; }
}
