:root {
  --bg: #0a0c0c;
  --panel: #111414;
  --panel-2: #151919;
  --text: #f1f3ed;
  --muted: #8d9691;
  --quiet: #5e6762;
  --line: #272c2a;
  --accent: #06aee4;
  --accent-soft: rgba(6, 174, 228, .1);
  --content: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(6, 174, 228, .045), transparent 25%),
    var(--bg);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #10130e; background: var(--accent); }

.page { width: min(var(--content), calc(100% - 64px)); margin: 0 auto; }
.site-header {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}
.identity { font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.availability { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.availability::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  animation: breathe 2.6s ease-in-out infinite;
}

/* INTRO */
.intro {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  grid-template-rows: 1fr auto;
  gap: 40px 7vw;
  padding: 98px 0 38px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.intro-copy { align-self: center; position: relative; z-index: 2; }
.intro h1 {
  margin: 0 0 28px;
  max-width: 780px;
  font-size: clamp(58px, 7.7vw, 112px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.085em;
}
.intro h1 .soft { color: #69716d; }
.intro h1 .dot { color: var(--accent); }
.lede {
  margin: 0;
  max-width: 590px;
  color: #b5bcb8;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.58;
  letter-spacing: -.025em;
}
.lede strong { color: var(--text); font-weight: 500; }
.portrait-wrap { align-self: center; position: relative; }
.portrait {
  aspect-ratio: .78;
  width: 100%;
  max-height: 620px;
  overflow: hidden;
  border-radius: 3px 3px 42% 3px;
  background: #1b201e;
  position: relative;
}
.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(1.08) contrast(1.03) brightness(.92);
  transition: filter .6s ease, transform .9s cubic-bezier(.2, .75, .2, 1);
}
.portrait:hover img { filter: saturate(1.16) contrast(1.02) brightness(.98); transform: scale(1.025); }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 8, 7, .58));
  pointer-events: none;
}
.contact-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 7vw;
  align-items: end;
}
.contacts { display: flex; gap: 9px; flex-wrap: wrap; }
.contact-pill {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7ceca;
  font-size: 12px;
  transition: .25s ease;
}
.contact-pill svg { width: 14px; height: 14px; }
.contact-pill:hover { color: #11150f; border-color: var(--accent); background: var(--accent); transform: translateY(-2px); }
.scroll-note { justify-self: end; color: var(--quiet); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* HISTORY */
.history { padding: 145px 0 130px; border-bottom: 1px solid var(--line); }
.section-head {
  margin-bottom: 70px;
}
.section-head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 80px);
  line-height: .96;
  font-weight: 500;
  letter-spacing: -.072em;
}
.section-head h2 span { color: var(--quiet); }
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 10px;
  left: 167px;
  width: 1px;
  background: var(--line);
}
.entry {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 192px;
  position: relative;
}
.entry-year { padding-top: 8px; color: var(--muted); font-size: 12px; }
.entry-body {
  position: relative;
  padding: 0 0 56px 58px;
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(320px, 1.22fr);
  gap: 45px;
}
.entry-body::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--quiet);
}
.entry:first-child .entry-body::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.entry-title h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -.045em; }
.entry-title span { color: var(--muted); font-size: 12px; }
.entry-detail p { max-width: 610px; margin: 0 0 18px; color: #a8b0ac; font-size: 14px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
#short-timeline .entry { min-height: 96px; }
#short-timeline .entry-body { display: block; padding-bottom: 32px; }
#short-timeline .entry-title { display: flex; align-items: center; flex-wrap: wrap; column-gap: 16px; row-gap: 8px; }
#short-timeline .entry-title h3 { margin: 0; }
#short-timeline .entry-title > span { flex-basis: 100%; }
#short-timeline .entry-detail { margin-top: 0; }
#short-timeline .entry-detail p { margin-bottom: 0; }
.entry-title-toggle {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
  transition: color .25s ease;
}
.entry-title-toggle:hover { color: var(--accent); }
.entry-action-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c7ceca;
  background: #0e1110;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.entry-action-toggle::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 12px; }
.entry-action-toggle[aria-expanded="true"]::after { content: "−"; }
.entry-action-toggle:hover { color: #12150f; border-color: var(--accent); background: var(--accent); }
.entry-action-toggle:hover::after { color: #12150f; }
.entry-title-toggle:focus-visible, .entry-action-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.entry-expanded {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .35s ease, opacity .35s ease;
}
.entry-expanded > div { min-height: 0; overflow: hidden; }
.entry-expanded.is-open { grid-template-rows: 1fr; opacity: 1; }
.entry-expanded p { padding-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .entry-expanded { transition: none; }
}

/* KNOWLEDGE */
.knowledge { padding: 135px 0 0; }
.knowledge-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; }
.skills-intro { position: sticky; top: 35px; align-self: start; }
.skills-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.072em;
}
.skills-intro p { max-width: 380px; margin: 0 0 44px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.skill-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; margin-top: 17px; }
.skill-row span { color: #c5cbc8; font-size: 11px; }
.skill-row i { height: 2px; background: #252a28; position: relative; overflow: hidden; }
.skill-row i::after { content: ""; position: absolute; inset: 0; width: var(--level); background: var(--accent); transform-origin: left; animation: revealBar 1.1s both; animation-play-state: paused; }
.visible .skill-row i::after { animation-play-state: running; }
.content-stack { display: grid; gap: 72px; }
.content-block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.content-block-head h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.04em; }
.content-block-head span { color: var(--quiet); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.article-list { border-top: 1px solid var(--line); }
.article-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 128px;
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease, background .3s ease;
}
.article-card:hover { padding: 0 17px; background: var(--panel); }
.article-card .number { color: var(--quiet); font-size: 10px; }
.article-card h4 { margin: 0 0 8px; font-size: 19px; font-weight: 500; letter-spacing: -.035em; }
.article-card p { margin: 0; color: var(--muted); font-size: 12px; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.video-card { display: block; }
.thumb {
  aspect-ratio: 1.52;
  padding: 18px;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: 3px;
  position: relative;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 16% 12%;
  border: 1px solid #343a37;
  border-radius: 50%;
  transform: rotate(-12deg);
  transition: transform .5s ease;
}
.video-card:nth-child(2) .thumb { background: #171b16; }
.video-card:nth-child(2) .thumb::before { inset: 11% 25%; border-radius: 2px; transform: rotate(7deg); }
.video-card:hover .thumb::before { transform: rotate(0) scale(1.05); border-color: #65705f; }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #11150f;
  background: var(--accent);
  z-index: 2;
  transition: transform .25s ease;
}
.video-card:hover .play { transform: scale(1.08); }
.play svg { width: 17px; margin-left: 3px; }
.video-code { position: absolute; left: 18px; bottom: 15px; color: #637069; font-size: 9px; letter-spacing: .08em; }
.video-card h4 { margin: 15px 0 6px; font-size: 15px; font-weight: 500; letter-spacing: -.025em; }
.video-card p { margin: 0; color: var(--muted); font-size: 11px; }

.closing {
  margin-top: 125px;
  padding: 72px 0 0;
  text-align: center;
}
.closing h2 { margin: 0 auto 30px; max-width: 900px; font-size: clamp(44px, 6.5vw, 88px); line-height: .95; font-weight: 500; letter-spacing: -.075em; }
.closing h2 span { color: var(--accent); }
.closing a { display: inline-block; padding-bottom: 5px; border-bottom: 1px solid var(--text); font-size: 14px; }
.site-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 110px;
  padding-bottom: 136px;
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].visible { opacity: 1; transform: none; }
@keyframes breathe { 50% { opacity: .45; box-shadow: 0 0 0 8px rgba(6, 174, 228, .04); } }
@keyframes revealBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .page { width: min(100% - 38px, 680px); }
  .site-header { top: 28px; }
  .intro { grid-template-columns: 1fr; min-height: auto; padding-top: 74px; gap: 30px; }
  .intro-copy { margin-top: 60px; }
  .intro h1 { font-size: clamp(58px, 14.5vw, 92px); }
  .portrait-wrap { width: min(86%, 480px); justify-self: end; }
  .contact-line { grid-column: 1; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
  .scroll-note { justify-self: start; }
  .history { padding: 95px 0; }
  .knowledge { padding: 95px 0 0; }
  .section-head { margin-bottom: 55px; }
  .timeline::before { left: 97px; }
  .entry { grid-template-columns: 98px 1fr; }
  .entry-body { grid-template-columns: 1fr; gap: 18px; padding-left: 38px; }
  #short-timeline .entry { min-height: 0; }
  #short-timeline .entry-body { padding-bottom: 34px; }
  .knowledge-grid { grid-template-columns: 1fr; gap: 80px; }
  .skills-intro { position: static; }
  .site-footer { padding-bottom: 131px; }
}
@media (max-width: 560px) {
  .page { width: calc(100% - 28px); }
  .site-header { align-items: start; }
  .availability { max-width: 125px; text-align: right; line-height: 1.35; }
  .intro { padding-top: 90px; }
  .intro-copy { margin-top: 42px; }
  .intro h1 { font-size: clamp(53px, 16.5vw, 78px); }
  .portrait-wrap { width: 93%; }
  .section-head h2 { font-size: 45px; }
  .timeline::before { left: 65px; }
  .entry { grid-template-columns: 66px 1fr; min-height: 0; }
  .entry-year { font-size: 10px; }
  .entry-body { padding: 0 0 50px 27px; }
  #short-timeline .entry-body { padding-bottom: 30px; }
  .entry-body::before { left: -4px; }
  .entry-title h3 { font-size: 21px; }
  .videos { grid-template-columns: 1fr; gap: 32px; }
  .article-card { grid-template-columns: 34px 1fr; gap: 10px; }
  .article-card h4 { font-size: 16px; }
  .closing { margin-top: 85px; }
  .site-footer { gap: 12px; flex-direction: column; align-items: center; margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
