/* G.D.Z — Giorgio Del Zotto */

:root {
  --dark: #252525;
  --dark-2: #2c2c2c;
  --cream: #f3f2ee;
  --white: #ffffff;
  --ink: #232323;
  --text-light: #ededed;
  --muted-light: #a3a3a3;
  --dim-light: #6f6f6f;
  --muted-dark: #6b6b6b;
  --dim-dark: #c9c8c4;
  --max: 1272px;
  --gutter: clamp(20px, 5vw, 84px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header { padding-block: 32px; }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.nav { display: flex; gap: 36px; }

.nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text-light); }

/* ---------- Type ---------- */

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.rule {
  width: 40px;
  height: 1px;
  border: 0;
  margin: 24px 0;
  background: currentColor;
  opacity: .45;
}

/* ---------- Placeholder images ---------- */

.ph {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 10);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(127,127,127,.08) 14px 15px),
    rgba(127,127,127,.12);
  border: 1px dashed rgba(127,127,127,.35);
  color: rgba(127,127,127,.9);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img) { border: 0; background: var(--dark-2); color: transparent; }

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(48px, 9vw, 120px) clamp(72px, 10vw, 140px); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr minmax(0, 485px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero h1 {
  margin: 0 0 32px;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.32em;
}

.hero .kicker { font-weight: 400; letter-spacing: 0.28em; }

.hero p.lead { margin: 0; color: var(--muted-light); max-width: 720px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .kicker { color: var(--muted-dark); }

.section-title { text-align: center; margin-bottom: 56px; }

/* ---------- Cards (home) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: block;
  background: var(--white);
  color: var(--ink);
  padding: 24px 24px 28px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }

.card .ph { --ratio: 340 / 145; margin-bottom: 36px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.card .meta { margin: 0 0 6px; font-size: 13px; color: #6f6f6f; }
.card .desc { margin: 0; font-size: 15px; color: #4a4a4a; }

/* ---------- Page intro (subpages) ---------- */

.intro { text-align: center; padding-block: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 48px); }

.intro h1 {
  margin: 16px 0 20px;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.intro p { margin: 0 auto; max-width: 420px; font-size: 15px; color: var(--muted-light); }

/* ---------- Feature rows ---------- */

.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.feature--flip .feature-media { order: 2; }

.feature .num {
  display: block;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--dim-light);
  margin-bottom: 20px;
}

.section--cream .num { color: var(--dim-dark); }

.feature h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature .kicker { font-weight: 400; letter-spacing: 0.22em; }

.feature p.desc { margin: 0; color: var(--muted-light); max-width: 600px; }
.section--cream .feature p.desc, .section--cream p.desc { color: #6b6b6b; }

.feature .ph { --ratio: 620 / 388; }

.feature .more {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

/* ---------- YouTube ---------- */

.video-main { max-width: 612px; margin: 0 auto; }

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .ph { --ratio: 16 / 9; height: 100%; }

.videos-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.videos-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.videos-head a { color: var(--muted-light); text-decoration: none; font-size: 15px; }
.videos-head a:hover { color: var(--text-light); }

.videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- About ---------- */

.about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 407px) 1fr;
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.about .ph { --ratio: 407 / 553; }

.about h1 {
  margin: 20px 0 0;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

.about p { margin: 0 0 22px; color: var(--muted-light); }

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.skills h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.skills .rule { margin: 14px 0 18px; }

.skills ul { list-style: none; margin: 0; padding: 0; }
.skills li { color: #6b6b6b; padding-block: 4px; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 72px 56px; font-size: 13px; color: var(--dim-light); }

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { text-decoration: none; color: var(--dim-light); transition: color .2s; }
.site-footer a:hover { color: var(--text-light); text-decoration: underline; }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound a { color: var(--muted-light); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-header .wrap { flex-direction: column; gap: 20px; }
  .nav { gap: 24px; flex-wrap: wrap; justify-content: center; }

  .hero .wrap,
  .feature .wrap,
  .about .wrap { grid-template-columns: 1fr; }

  .hero-media { max-width: 420px; }
  .feature--flip .feature-media { order: 0; }

  .cards, .videos { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .skills { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 480px) {
  .nav { gap: 16px 20px; }
  .nav a { font-size: 12px; }
  .logo { letter-spacing: 0.45em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Case study ---------- */

.intro .kicker a { text-decoration: none; }
.intro .kicker a:hover { color: var(--text-light); }

.case-hero { padding-bottom: clamp(64px, 9vw, 128px); }

.case-title {
  margin: 12px 0 48px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: rgba(127,127,127,.25);
}

.stat { display: flex; flex-direction: column; gap: 6px; padding: 28px 20px; background: var(--dark); text-align: center; }
.stats--light .stat { background: var(--cream); }
.stat-value { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.1; }
.stat-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.stats--light .stat-label { color: var(--muted-dark); }

.feature p.desc + p.desc { margin-top: 16px; }
.feature strong { color: inherit; font-weight: 600; }
.section--cream .feature-text h2, .section--cream .feature h2 { color: var(--ink); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.timeline li { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25); }
.timeline .when { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }
.timeline strong { font-size: 20px; font-weight: 600; }
.timeline li > span:last-child { color: var(--muted-light); font-size: 15px; }

.xlist { list-style: none; margin: 0; padding: 0; color: #4a4a4a; }
.xlist li { padding: 12px 0 12px 28px; border-bottom: 1px solid rgba(0,0,0,.1); position: relative; }
.xlist li::before { content: "✕"; position: absolute; left: 0; color: #b0405f; }

.points { display: grid; gap: 24px; }
.points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.point { padding: 28px 24px; border: 1px solid rgba(127,127,127,.3); }
.point-num { font-size: 13px; color: var(--muted-light); letter-spacing: .1em; }
.section--cream .point-num { color: var(--muted-dark); }
.point h3 { margin: 10px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.point p { margin: 0; font-size: 15px; color: var(--muted-light); }
.section--cream .point p { color: #5a5a5a; }
.point strong { color: var(--text-light); font-weight: 600; }
.section--cream .point strong { color: var(--ink); }

.peaks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.peak { background: var(--white); padding: 28px 24px; }
.peak p { margin: 0; color: #5a5a5a; }
.peak .kicker { margin-bottom: 10px; }
.peak-value { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--ink) !important; margin-bottom: 6px !important; }
.case-note { margin: 24px 0 0; font-size: 14px; color: #6b6b6b; font-style: italic; }

.big-figure { margin: 28px 0 4px; font-size: clamp(40px, 5vw, 56px); font-weight: 600; line-height: 1; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.cta { text-align: center; }
.cta p { margin: 0 auto 32px; max-width: 520px; color: #5a5a5a; }
.button {
  display: inline-block;
  padding: 16px 32px;
  background: var(--dark);
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.button:hover { background: #000; }

@media (max-width: 900px) {
  .stats, .timeline, .gallery, .points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points--3, .peaks { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .timeline, .points--4 { grid-template-columns: 1fr; }
}
