:root {
  --bg: #F4F3EF;
  --ink: #16181D;
  --text-2: #3D4048;
  --muted: #4A4D55;
  --line: #D9D7CF;
  --accent: #2F5D3A;
  --hitch: #B5622A;
  --card: #FFFFFF;
  --dark: #16181D;
  --dark-muted: #A9ACB4;
  --dark-text: #C9CBD1;
  --display: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

.eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent); color: #fff; }

/* Header */
.header { padding-top: 28px; padding-bottom: 28px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: 44px; width: auto; display: block; }

/* Hero */
.hero {
  padding-top: 32px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 40px 64px;
  align-items: center;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  white-space: pre-line;
}
.intro { margin: 20px 0 28px; max-width: 620px; font-size: 20px; line-height: 1.55; color: var(--text-2); }

/* Profiler */
.profiler { background: var(--card); border-radius: 16px; padding: 24px; }
.profiler-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.profiler-head .label { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.profiler-head .ms {
  font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chart { position: relative; height: 120px; }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.bars div { flex: 1; border-radius: 2px; background: var(--text-2); }
.budget-line { position: absolute; left: 0; right: 0; bottom: 36.9%; border-top: 1.5px dashed #9A9DA5; }
.budget-label {
  position: absolute; right: 0; bottom: 38%;
  font-size: 12px; color: var(--muted); background: var(--card); padding: 0 4px;
}
.stack { position: relative; margin-top: 20px; height: 18px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.segs { position: absolute; inset: 0; display: flex; gap: 2px; }
.segs div { height: 100%; }
.stack-budget { position: absolute; top: 0; bottom: 0; left: 36.9%; border-left: 1.5px dashed var(--ink); }
.log {
  margin: 12px 0 0; height: 20px; font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.log .accent { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Services */
.services { padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.service { background: var(--card); border-radius: 16px; padding: 28px; }
.service h3, .work-item h3 {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px;
  letter-spacing: -0.015em; line-height: 1.2;
}
.service ul { margin: 20px 0 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }

/* Work */
.work { background: var(--dark); color: var(--bg); }
.work-inner { padding-top: 96px; padding-bottom: 96px; }
.work .eyebrow { color: var(--dark-muted); margin-bottom: 32px; }
.work-grid { gap: 48px 32px; }
.work-item { display: flex; flex-direction: column; gap: 16px; }
.work-item .shot { border-radius: 12px; overflow: hidden; }
.work-item img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.work-item:hover img { transform: scale(1.04); }
.work-item p { margin: 0; color: var(--dark-text); }

/* Contact */
.contact { padding-top: 112px; padding-bottom: 112px; }
.contact h2 {
  margin: 0 0 32px; max-width: 760px; font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1.05;
}

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
.footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-item img { transition: none; }
}

.footer-left { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }

/* About page */
.about-page { min-height: 100vh; display: flex; flex-direction: column; }
.about-page > * { width: 100%; }
.about-page main { flex: 1; }
.about {
  padding-top: 48px; padding-bottom: 112px;
  display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start;
}
.about-photo { flex: 0 0 220px; width: 220px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% center; border-radius: 16px; display: block; }
.about-text { flex: 1 1 360px; max-width: 620px; display: flex; flex-direction: column; gap: 32px; }
.about-text h1 {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
}
.about-text .role { margin: 12px 0 0; font-size: 20px; color: var(--text-2); }
.about-text h2 { margin: 0 0 8px; }
.about-text p { margin: 0; }
.about-text .values { margin-top: 12px; }
.about-text .quote {
  margin: 0 0 12px; font-family: var(--display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.25;
}
.about-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.about-actions .link { font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; text-underline-offset: 5px; }
@media (max-width: 640px) { .about-photo { flex-basis: 160px; width: 160px; } }
.about-text .intro-line { margin-top: 20px; }





.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--bg); }
.contact h2 + .actions { margin-top: 0; }

.footer .footer-left { gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--ink); }

.footer-stack { display: flex; flex-direction: column; gap: 4px; }
.footer-inner { align-items: flex-start; }
.footer a.footer-link { text-decoration: underline; text-underline-offset: 3px; }
.footer-stack { align-items: flex-end; }
@media (max-width: 640px) { .footer-stack { align-items: flex-start; } }
.footer .footer-left-stack { align-items: flex-start; }

.copy-email { user-select: all; -webkit-user-select: all; }
.contact h2 { margin-bottom: 16px; }
.contact-note { margin: 0 0 32px; color: var(--muted); }
.contact-note a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.contact h2 { margin-bottom: 32px; }
.contact-more { display: inline-block; margin-top: 20px; font-size: 15px; color: var(--muted); text-underline-offset: 3px; }
.contact-more:hover { color: var(--ink); }

.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 32px; }
.work-head .eyebrow { margin: 0; }
.work-head a { color: var(--dark-muted); font-size: 15px; text-decoration: none; }
.work-head a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }

.work-head { justify-content: flex-start; gap: 8px 32px; }
.work-head a { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.work-head a:hover { color: var(--bg); }

/* About teaser */
.work .eyebrow { margin-bottom: 32px; }
.teaser-wrap { padding-top: 96px; }
.teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--card); border-radius: 16px; padding: 28px; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.teaser:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,24,29,.08); }
.teaser-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 420px; }
.teaser-text .eyebrow { margin: 0 0 4px; }
.teaser strong { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.teaser-line { color: var(--muted); }
.teaser-more { font-weight: 600; white-space: nowrap; }
.contact-after-teaser { padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { .teaser { transition: none; } .teaser:hover { transform: none; } }

.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: rgba(22,24,29,.06); color: var(--ink); }

.footer-right { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.footer a.footer-nav { color: var(--ink); text-decoration: none; }
.footer a.footer-nav:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer a.footer-nav { font-weight: 600; }
.footer-right { gap: 14px; }


@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 12px; }
  .footer-legal .sep { display: none; }
  .footer-legal > span:not(.sep) { display: block; }
}

/* Background timeline (one row of six, two rows of three when narrow) */
.htimeline {
  margin: 0; padding: 0; list-style: none; position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; row-gap: 20px;
}
.htimeline::before {
  content: ""; position: absolute; left: 5px; right: 0; top: 27px;
  border-top: 1.5px solid var(--line);
}
.htimeline li {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  min-width: 0; padding-top: 44px;
}
.htimeline li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 11px; height: 11px;
  box-sizing: border-box; border-radius: 50%; background: var(--bg); border: 2px solid #9A9DA5;
}
.htimeline .now::before { background: var(--accent); border-color: var(--accent); }
.htimeline .year {
  position: absolute; left: 0; top: 0;
  font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.htimeline .now .year { color: var(--accent); font-weight: 600; }
.htimeline strong { font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.htimeline .role-col { font-size: 13px; line-height: 1.3; color: var(--muted); }
@media (max-width: 920px) {
  .htimeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .htimeline::before { display: none; }
}

/* Phone footer: links first, legal small and quiet below */
@media (max-width: 640px) {
  .footer-inner { padding-top: 32px; padding-bottom: 40px; gap: 20px; }
  .footer-right { order: -1; font-size: 15px; gap: 12px; }
  .footer-legal { font-size: 13px; line-height: 1.6; color: var(--muted); opacity: .85; }
}
