/* ============================================================
   Brad Porchak — personal brand site
   ============================================================ */
:root {
  --bg: #FBFAF8;
  --surface: #FFFFFF;
  --surface-2: #F3F0EA;
  --ink: #1C1A17;
  --muted: #6B6660;
  --line: #E6E1D8;
  --accent: #C76B3F;
  --accent-ink: #A8542C;
  --navy: #1F3A4D;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(28,26,23,0.08);
  --shadow-lg: 0 24px 60px rgba(28,26,23,0.12);
}
[data-theme="dark"] {
  --bg: #14130F;
  --surface: #1C1A16;
  --surface-2: #242017;
  --ink: #F4F1EA;
  --muted: #A8A299;
  --line: #2E2A22;
  --accent: #E08A5C;
  --accent-ink: #E9A07A;
  --navy: #8FB3C9;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; line-height: 1.05; letter-spacing: 0; }
h3 { font-family: 'Instrument Sans', system-ui, sans-serif; line-height: 1.25; letter-spacing: -0.01em; }
.accent { color: var(--accent); font-style: italic; }
.eyebrow {
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-ink); display: inline-block; margin-bottom: 14px;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem; border-radius: 999px;
  padding: 11px 22px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy); color: #fff; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: .9rem;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }

/* ───── Hero ───── */
.hero { padding: 86px 24px 72px; text-align: center; }
.hero-pill {
  display: inline-block; background: var(--surface-2); color: var(--muted);
  font-size: .82rem; font-weight: 500; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); margin-bottom: 28px;
}
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.5rem); font-weight: 400; margin-bottom: 22px; }
.hero-sub { max-width: 640px; margin: 0 auto 32px; color: var(--muted); font-size: 1.12rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.tag {
  font-size: .82rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}

/* ───── Sections ───── */
.section { padding: 84px 24px; }
.section.alt { background: var(--surface-2); max-width: none; }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 400; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ───── Service cards ───── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .98rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.service-icon svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ───── Offer card ───── */
.offer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 40px; max-width: 720px; margin: 48px auto 0; text-align: center; box-shadow: var(--shadow);
}
.offer-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.offer-card p { color: var(--muted); margin-bottom: 22px; }
.offer-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ───── Steps ───── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; margin-bottom: 16px; font-size: 1.05rem;
}
.step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.steps-note { text-align: center; color: var(--muted); max-width: 560px; margin: 36px auto 0; font-size: .95rem; }
.values-inline { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* ───── Timeline ───── */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-left: 48px; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 2px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline-tag { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.timeline-body h3 { font-size: 1.35rem; font-weight: 600; margin: 6px 0 8px; }
.timeline-body p { color: var(--muted); }

/* ───── Work grid ───── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-link { display: block; text-decoration: none; color: inherit; }
.work-thumb { height: 180px; background: var(--navy); overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb-1 { background: linear-gradient(135deg, #1F3A4D, #2E5871); }
.work-thumb-2 { background: linear-gradient(135deg, #C76B3F, #E0A06A); }
.work-thumb-3 { background: linear-gradient(135deg, #3A2E4D, #6B4C7A); }
.work-meta { padding: 22px 24px 26px; }
.work-kind { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.work-meta h3 { font-size: 1.2rem; font-weight: 600; margin: 6px 0 8px; }
.work-meta p { color: var(--muted); font-size: .95rem; }

/* ───── Featured videos ───── */
.video-row-head { margin: 48px 0 20px; }
.video-row-head h3 { font-size: 1.35rem; font-weight: 600; }
.video-row-head p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.video-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video-tile { margin: 0; }
.video-tile video {
  width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block;
  border-radius: var(--radius); background: #000; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.video-tile figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; line-height: 1.45; }
.video-tile figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .video-row { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* Flagship build film */
.build-showcase { margin: 0 0 44px; }
.build-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.build-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.build-showcase figcaption { color: var(--muted); font-size: .95rem; margin-top: 14px; line-height: 1.5; max-width: 760px; }
.build-showcase figcaption strong { color: var(--ink); font-weight: 600; }
.build-link { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 600; }
.build-link:hover { color: var(--accent-ink); }

/* ───── Story ───── */
.story-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.story-text p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.story-text strong { color: var(--ink); font-weight: 600; }
.story-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.story-card blockquote {
  font-family: 'Instrument Serif', serif; font-size: 1.25rem; font-style: italic; line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--accent); padding-left: 18px;
}
.story-values { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.value { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.value span { color: var(--accent); }

/* ───── About ───── */
.about-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.about-photo-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}
.about-photo-placeholder {
  aspect-ratio: 4/5; border-radius: var(--radius); border: 1.5px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); background: var(--surface); font-size: .95rem;
}
.about-text p { color: var(--muted); margin: 16px 0; font-size: 1.05rem; }
.about-text .btn { margin-top: 8px; }

/* ───── Contact ───── */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow);
}
.contact-head { text-align: center; margin-bottom: 32px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  font-family: inherit; font-size: .98rem; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.found-note { text-align: center; max-width: 640px; margin: 40px auto 0; }
.found-note p { color: var(--muted); margin-bottom: 20px; }
.contact-or { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 14px; }
.contact-or a { color: var(--accent); font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-status { text-align: center; font-size: .95rem; font-weight: 600; margin-top: 14px; }
.form-status.ok { color: #158a4a; }
.form-status.err { color: #c0392b; }

/* ───── Footer ───── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 24px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-note { color: var(--muted); font-size: .95rem; }
.footer-copy { color: var(--muted); font-size: .85rem; }

/* ───── Reveal animation ───── */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
  .cards-3, .cards-2, .steps, .work-grid { grid-template-columns: 1fr; }
  .story-wrap, .about-wrap { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .nav-actions .btn-primary { display: none; }
  .hero { padding: 60px 20px 50px; }
}
