@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Three colors: neutral ground, ink, one accent */
:root {
  --bg: #F4F1EA;
  --ink: #121212;
  --accent: #F07A3A;     /* CONFIA orange, softened */
  --on-accent: #121212;
  --line: #D8D3C8;
  --paper: #FFFFFF;      /* only behind charts shown with object-fit: contain */
  --gutter: 24px;
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--line) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
img { display: block; max-width: 100%; }

.display { font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.01em; line-height: .88; }
/* highlight: same look as text selection */
.hl { background: var(--accent); color: var(--on-accent); padding: 0 .03em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.caps { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* nav */
nav { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
nav .links { display: flex; gap: 24px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* hero */
.hero { text-align: center; padding-top: 6vh; overflow: hidden; }
.hero h1 { font-size: 23vw; white-space: nowrap; line-height: .8; }
.hero .role { margin-top: 5vw; font-size: 20px; }
.hero .line { margin: 14px auto 0; max-width: 38ch; font-size: 20px; padding: 0 var(--gutter); }
.stories { margin: 18px auto 0; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; font-size: 15px; }

/* cards */
.work { max-width: var(--max); margin: 120px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 40px; min-width: 0; display: flex; flex-direction: column; }
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; min-height: 480px; }
.card h2 { font-size: clamp(48px, 6vw, 96px); }
.card h2 small { display: block; font-size: clamp(20px, 2.5vw, 40px); line-height: 1; margin-top: .25em; }
.card h3 { font-size: clamp(34px, 3.4vw, 52px); }
.card .meta { margin-top: 14px; }
.story { margin-top: 24px; max-width: 46ch; }
.story p + p { margin-top: 12px; }
.section-title { grid-column: 1 / -1; font-size: clamp(40px, 5vw, 72px); margin-top: 96px; }
.cta { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.wide .intro { display: flex; flex-direction: column; }
.wide .intro .cta { margin-top: auto; }

/* carousel: native swipe via scroll-snap, JS only advances it */
.carousel { position: relative; min-width: 0; display: flex; flex-direction: column; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; flex: 1; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--paper); }
.slide video { width: 100%; height: 100%; min-height: 400px; object-fit: cover; border-radius: 8px; display: block; }
.slide img.fit { object-fit: contain; }
.slide h3 { margin-top: 24px; }
.wide .slide img { aspect-ratio: auto; height: 100%; min-height: 400px; }
.wide .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 100%; }
.dots { display: flex; gap: 8px; margin-top: 18px; }
.dots button { width: 28px; height: 6px; border-radius: 3px; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--on-accent) 25%, transparent); transition: background .3s, width .3s var(--ease); }
.dots button[aria-current="true"] { width: 48px; background: var(--on-accent); }

/* work experience */
.experience { max-width: var(--max); margin: 120px auto 0; padding: 0 var(--gutter); }
.experience h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 24px; }
.experience ul { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.experience li { display: grid; grid-template-columns: 1.2fr 1fr 10ch; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.experience li span:first-child { font-weight: 700; }
.experience li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }

/* contact */
.contact { text-align: center; padding: 140px var(--gutter) 80px; }
.contact .big { font-size: 16vw; line-height: .85; }
.contact .mail { margin-top: 3vw; display: inline-block; font-size: 20px; font-weight: 600; }
.contact .small { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; margin-top: 80px; }
  .card, .card.wide { padding: 24px; grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .wide .slide img, .wide .slide video { min-height: 0; aspect-ratio: 3 / 4; }
  .experience { margin-top: 80px; }
  .experience li { grid-template-columns: 1fr; gap: 2px; font-size: 18px; }
  .experience li span:last-child { text-align: left; }
  .section-title { margin-top: 56px; }
  .contact { padding-top: 100px; }
}

.gotya { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
#gotya { flex-basis: 100%; font-weight: 700; }
#gotya:not([hidden]) { background: var(--accent); padding: 2px 8px; flex-basis: auto; }
