/* URATIO — site styles. Replaces the inline-style soup of the React build. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-var.woff2') format('woff2-variations'),
       url('../fonts/instrument-sans-latin-var.woff2') format('woff2');
}

:root {
  --bg: #eef0ea;
  --bg-alt: #e7eae1;
  --ink: #2f3a34;
  --accent: #d8634d;
  --slate: #7f9aa8;
  --sand: #e3b23c;
  --rule: rgba(47, 58, 52, 0.18);
  --rule-strong: rgba(47, 58, 52, 0.4);
  --rule-dark: rgba(238, 240, 234, 0.25);
  --gutter: clamp(20px, 5vw, 64px);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

img, svg, iframe { max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: rgba(47, 58, 52, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Shared type ---------- */

.eyebrow {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  opacity: .6; margin: 0;
}
.display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: pretty;
}
h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }

.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; opacity: .82; max-width: 46ch; }
.prose { font-size: 16px; line-height: 1.6; opacity: .8; }

.btn {
  display: inline-block; text-decoration: none;
  padding: 15px 26px; font-size: 16px;
  background: var(--ink); color: var(--bg);
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--bg); }
.btn--ghost { background: none; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: none; color: var(--accent); border-color: var(--accent); }

.rule-b { border-bottom: 1px solid var(--rule); }

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

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 27px; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px clamp(14px, 2.5vw, 32px); font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav .btn { padding: 10px 18px; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 128px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__img { display: block; width: 100%; min-width: 0; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Section scaffolding ---------- */

.section { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.section--tall { padding: clamp(48px, 7vw, 104px) var(--gutter); }
.section__head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section__head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }

/* ---------- What we do ---------- */

.cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--rule);
  list-style: none; margin: 0; padding: 0;
}
.card {
  background: var(--bg); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.card__icon { flex: none; }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Gallery ---------- */

.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Approach (dark) ---------- */

.approach { background: var(--ink); color: var(--bg); padding: clamp(48px, 7vw, 104px) var(--gutter); }
.approach__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.approach__intro { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.approach__intro .eyebrow { opacity: .65; }
.approach__intro p { max-width: 44ch; font-size: 17px; line-height: 1.65; opacity: .85; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--rule-dark);
}
.steps > .step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step__num { font-family: var(--serif); font-size: 22px; opacity: .6; }
.step h3 { font-family: var(--sans); font-size: 18px; margin-bottom: 6px; letter-spacing: 0; }
.step p { font-size: 16px; line-height: 1.6; opacity: .75; }

/* ---------- Founder ---------- */

.founder {
  padding: clamp(48px, 7vw, 104px) var(--gutter);
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: stretch;
}
.founder__photo { flex: 0 1 400px; min-width: 0; margin: 0; }
.founder__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.founder__body {
  flex: 1 1 340px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px; min-width: 0; max-width: 60ch;
}
.founder__stack { display: flex; flex-direction: column; gap: 24px; }
.founder__bio { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; }
.founder__meta { font-size: 16px; line-height: 1.65; opacity: .78; }
.link-accent {
  align-self: flex-start; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px; font-size: 16px;
}

/* ---------- Experience + tabs ---------- */

.experience {
  padding: clamp(48px, 7vw, 104px) var(--gutter);
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px);
}
.experience__head { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.experience__head h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; }

.tabs { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.tabs__radios { position: absolute; opacity: 0; pointer-events: none; }
.tabs__list { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(47, 58, 52, 0.25); }
.tabs__label {
  position: relative; padding: 14px 24px 16px 0; margin-right: 24px;
  font: inherit; font-size: 17px; cursor: pointer;
}
.tabs__label:hover { color: var(--accent); }
.tabs__label::after {
  content: ''; position: absolute; left: 0; right: 24px; bottom: -1px;
  height: 3px; background: var(--accent); opacity: 0;
}

#tab-foot:checked ~ .tabs__list [for="tab-foot"]::after,
#tab-docs:checked ~ .tabs__list [for="tab-docs"]::after,
#tab-exp:checked  ~ .tabs__list [for="tab-exp"]::after { opacity: 1; }
#tab-foot:focus-visible ~ .tabs__list [for="tab-foot"],
#tab-docs:focus-visible ~ .tabs__list [for="tab-docs"],
#tab-exp:focus-visible  ~ .tabs__list [for="tab-exp"] { outline: 2px solid var(--accent); outline-offset: 3px; }

.tabs__panels > .tab-panel + .tab-panel { margin-top: clamp(40px, 6vw, 72px); }
.tabs__panels { min-height: 420px; }
/* Every panel is in the HTML and visible by default, so the page is complete
   without CSS or JS; the radios only collapse the ones not selected. */
.tab-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@supports selector(:checked ~ *) {
  #tab-foot:checked ~ .tabs__panels > #panel-docs,
  #tab-foot:checked ~ .tabs__panels > #panel-exp,
  #tab-docs:checked ~ .tabs__panels > #panel-foot,
  #tab-docs:checked ~ .tabs__panels > #panel-exp,
  #tab-exp:checked  ~ .tabs__panels > #panel-foot,
  #tab-exp:checked  ~ .tabs__panels > #panel-docs { display: none; }
  .tabs__panels > .tab-panel + .tab-panel { margin-top: 0; }
}

/* Footprint */
.footprint { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }
.footprint__globe {
  display: block; width: 100%; max-width: 360px; aspect-ratio: 1 / 1;
  border: 0; background: transparent; justify-self: center;
}
.regions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(47, 58, 52, 0.2); border-left: 1px solid rgba(47, 58, 52, 0.2);
  list-style: none; margin: 0; padding: 0;
}
.region {
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid rgba(47, 58, 52, 0.2); border-bottom: 1px solid rgba(47, 58, 52, 0.2);
  transition: background .15s;
}
.region:hover { background: var(--bg-alt); }
.region h4 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0; line-height: 1.1; }
.region p { font-size: 15px; line-height: 1.5; opacity: .8; }
.region--eu h4 { color: var(--accent); }
.region--asia h4 { color: var(--slate); }
.region--me h4 { color: var(--sand); }
.region--na h4 { color: var(--ink); }
@media (max-width: 520px) { .regions { grid-template-columns: minmax(0, 1fr); } }

/* Documents */
.docs__col { display: flex; flex-direction: column; min-width: 0; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.docs__total { display: flex; flex-direction: column; gap: 10px; }
.docs__total b {
  font-family: var(--serif); font-weight: 400; color: var(--accent);
  font-size: clamp(72px, 10vw, 120px); line-height: .9; letter-spacing: -.03em;
}
.docs__total span { font-size: 18px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.doc-row {
  display: grid; grid-template-columns: 1fr 56px; gap: 20px; align-items: center;
  padding: 16px 0; border-top: 1px solid rgba(47, 58, 52, 0.2);
}
.doc-list > .doc-row:last-child { border-bottom: 1px solid rgba(47, 58, 52, 0.2); }
.doc-row__label { display: flex; flex-direction: column; gap: 8px; }
.doc-row__label > span { font-size: 16px; }
.bar { height: 10px; background: var(--sand); width: var(--w, 100%); }
.doc-row__n { font-family: var(--serif); font-size: 32px; text-align: right; }
.docs__note { font-size: 14px; opacity: .65; padding-top: 12px; }

/* Expertise & education */
.expertise { display: flex; flex-direction: column; gap: 40px; }
.timeline { display: flex; flex-direction: column; max-width: 720px; }
.timeline__track { position: relative; height: 14px; }
.timeline__track i { position: absolute; display: block; }
.tl-line-1 { left: 0; width: 32%; top: 6px; height: 2px; background: var(--ink); }
.tl-line-2 { left: 32%; right: 0; top: 2px; height: 10px; background: var(--sand); }
.tl-dot-1 { left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.tl-dot-2 { left: calc(32% - 7px); top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.timeline__items { display: grid; grid-template-columns: 32% minmax(0, 1fr); margin-top: 16px; list-style: none; padding: 0; }
.timeline__items li { display: flex; flex-direction: column; gap: 6px; }
.timeline__items li:first-child { padding-right: 20px; }
.timeline__items li:last-child { margin-left: -7px; }
.timeline__year { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); }
.timeline__what { font-size: 15px; line-height: 1.45; }
.timeline__role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }

.standards { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.standards__list { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; list-style: none; margin: 0; padding: 0; }
.standards__list li { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }

.skills {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(47, 58, 52, 0.2); border-left: 1px solid rgba(47, 58, 52, 0.2);
  list-style: none; margin: 0; padding: 0;
}
.skill {
  padding: 28px; min-height: 220px; display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid rgba(47, 58, 52, 0.2); border-bottom: 1px solid rgba(47, 58, 52, 0.2);
  transition: background .15s;
}
.skill:hover { background: var(--bg-alt); }
.skill span { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .skills { grid-template-columns: minmax(0, 1fr); } .skill { min-height: 0; } }

.achievements {
  background: var(--ink); color: var(--bg); padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px;
  list-style: none; margin: 0;
}
.achievements__head { display: flex; flex-direction: column; gap: 6px; }
.achievements__head span:first-child { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.achievements__head span:last-child { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.achievements li { font-size: 16px; line-height: 1.45; border-top: 1px solid var(--rule-dark); padding-top: 12px; }
.achievements > .achievements__head { border: 0; padding-top: 0; }

/* ---------- Contact ---------- */

.contact {
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.contact__intro { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.contact__intro h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.025em; }
.contact__intro p { max-width: 42ch; font-size: 17px; line-height: 1.6; opacity: .82; }
.contact__list {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  font-size: clamp(18px, 1.8vw, 24px); padding-top: .5em;
  list-style: none; margin: 0;
}
.contact__list a { text-decoration: none; border-bottom: 1px solid rgba(47, 58, 52, 0.25); padding-bottom: 10px; display: block; }

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

.site-footer {
  border-top: 1px solid var(--rule); padding: 24px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 14px; opacity: .7;
}

/* ---------- Reveal animations (CSS only, triggered when a panel is shown) ---------- */

@keyframes bar-grow { from { width: 0; } to { width: var(--w); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }

#tab-docs:checked ~ .tabs__panels .bar {
  animation: bar-grow 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
.doc-list > li:nth-child(2) .bar { animation-delay: 90ms; }
.doc-list > li:nth-child(3) .bar { animation-delay: 180ms; }
.doc-list > li:nth-child(4) .bar { animation-delay: 270ms; }
.doc-list > li:nth-child(5) .bar { animation-delay: 360ms; }

#tab-exp:checked ~ .tabs__panels .timeline__track i { animation: pop .9s cubic-bezier(.2, .7, .2, 1) both; }
#tab-exp:checked ~ .tabs__panels .tl-line-1,
#tab-exp:checked ~ .tabs__panels .tl-line-2 {
  animation: grow-x .9s cubic-bezier(.2, .7, .2, 1) both;
  transform-origin: left center;
}
#tab-exp:checked ~ .tabs__panels .tl-line-2 { animation-delay: 350ms; }
#tab-exp:checked ~ .tabs__panels .tl-dot-2 { animation-delay: 300ms; }
/* Only decorative elements fade in. Text never starts at opacity 0, so no
   copy can be left invisible if an animation is interrupted or never runs. */
#tab-exp:checked ~ .tabs__panels .skill svg {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.skills > li:nth-child(1) svg { animation-delay: 500ms; }
.skills > li:nth-child(2) svg { animation-delay: 590ms; }
.skills > li:nth-child(3) svg { animation-delay: 680ms; }
.skills > li:nth-child(4) svg { animation-delay: 770ms; }
.skills > li:nth-child(5) svg { animation-delay: 860ms; }
.skills > li:nth-child(6) svg { animation-delay: 950ms; }
.skills > li:nth-child(7) svg { animation-delay: 1040ms; }
.skills > li:nth-child(8) svg { animation-delay: 1130ms; }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  /* The hard line break is a desktop typographic choice; once the hero stacks,
     the forced line is wider than its column, so let the headline wrap itself. */
  h1 br { display: none; }
}

@media (max-width: 700px) {
  .site-header { padding-inline: var(--gutter); }
  .footprint { gap: 32px; }
  .tabs__label { padding-right: 16px; margin-right: 16px; }
  .tabs__label::after { right: 16px; }
  .tabs__panels { min-height: 0; }
}

@media (max-width: 420px) {
  .hero__actions .btn { padding: 14px 20px; }
  .doc-row { grid-template-columns: 1fr 48px; gap: 12px; }
  .doc-row__n { font-size: 26px; }
  .timeline__items { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .timeline__items li:last-child { margin-left: 0; }
  .timeline__items li:first-child { padding-right: 0; }
  .timeline__track { display: none; }
}

/* Long unbroken strings (e-mail, URLs) must never push the layout sideways. */
h1, h2, h3, h4, p, a, li, span { overflow-wrap: break-word; }
