:root{
  --ink: #112238;
  --paper: #eef3f8;
  --paper-deep: #dde6ef;
  --surface: #eef3f8;
  --surface-high: #f8fbff;
  --accent: #7db2ff;
  --accent-dark: #245a9f;
  --accent-warm: #ff8b6f;
  --accent-green: #47b39c;
  --muted: #607186;
  --line: rgba(17, 34, 56, 0.12);
  --shadow-raised: 12px 12px 28px rgba(142, 157, 178, .34), -12px -12px 28px rgba(255, 255, 255, .92);
  --shadow-raised-soft: 8px 8px 20px rgba(142, 157, 178, .24), -8px -8px 20px rgba(255, 255, 255, .86);
  --shadow-inset: inset 8px 8px 18px rgba(142, 157, 178, .28), inset -8px -8px 18px rgba(255, 255, 255, .9);
  --shadow-pressed: inset 5px 5px 12px rgba(142, 157, 178, .34), inset -5px -5px 12px rgba(255, 255, 255, .88);
  --mono: "DM Mono", monospace;
  --max: 1180px;
}

*{ box-sizing: border-box; }html{ scroll-behavior: smooth; }body{
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.66), transparent 34%),
    linear-gradient(315deg, rgba(125,178,255,.12), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}a{ color: inherit; }.skip-link{
  position: fixed; left: 1rem; top: -4rem; z-index: 20;
  background: var(--accent); padding: .7rem 1rem; border-radius: 6px;
}.skip-link:focus{ top: 1rem; }

.site-header{
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - 2rem), 1440px); margin: 0 auto; padding: 1rem 0;
  background: rgba(247, 250, 255, .9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}.brand{ display: flex; align-items: center; gap: .7rem; min-width: 0; text-decoration: none; font-weight: 700; }.brand-mark{
  display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1;
  padding: .25rem; background: white; border: 1px solid var(--line);
}.brand-mark img{ display: block; width: 100%; height: 100%; }.site-nav{ display: flex; gap: .15rem; }.site-nav a{
  padding: .55rem .9rem; text-decoration: none; font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
}.site-nav a:hover{ background: var(--paper-deep); }.menu-toggle{ display: none; }


.section{ width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }.hero{
  position: relative; min-height: calc(100svh - 65px); display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center;
  gap: clamp(2rem, 6vw, 7rem); padding-block: clamp(5rem, 9vw, 8rem); isolation: isolate;
}.hero-copy{ position: relative; z-index: 2; min-width: 0; width: 100%; }.eyebrow{
  margin: 0 0 1rem; color: var(--accent-dark); font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
}.eyebrow span{ margin-right: 1rem; color: var(--muted); }h1,
h2,
h3{ margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.08; letter-spacing: 0; }h1{ max-width: 850px; margin: 0 0 1.75rem; font-size: clamp(4rem, 7.4vw, 7.4rem); line-height: .9; letter-spacing: 0; }h1 em{ color: var(--accent-dark); font-style: normal; }h1 span{ display: inline-block; }h2{ margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 5rem); }h3{ margin-bottom: .7rem; font-size: 1.5rem; }.hero-intro{ max-width: 590px; margin: 0; }.hero-intro,
.section-heading > p:last-child{ color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); }.hero-actions,
.contact-actions{ display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }.hero-actions{ justify-content: flex-start; }.button{
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: .75rem 1.3rem;
  border: 1px solid var(--ink); border-radius: 6px; text-decoration: none; font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}.button:hover{ transform: translateY(-2px); }.button-primary{ background: var(--ink); color: white; }.button-primary:hover{ background: var(--accent-dark); }.button-secondary:hover{ background: white; }.cv-download{ position: relative; overflow: hidden; gap: .45rem; min-width: 12rem; border-radius: 6px; }.cv-download::after{
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px;
  background: var(--accent-dark); transform: scaleX(0); transform-origin: left;
}.cv-download.is-compiling{ pointer-events: none; background: white; }.cv-download.is-compiling::after{ animation: cv-compile-progress var(--cv-compile-duration, 2s) linear forwards; }.cv-download.is-compiling .cv-download-label{ font-family: var(--mono); font-size: .65rem; font-weight: 500; text-transform: uppercase; }.cv-download-cursor{ display: none; width: .35rem; height: .9rem; background: currentColor; }.cv-download.is-compiling .cv-download-cursor{ display: block; animation: cv-cursor-blink .7s step-end infinite; }
@keyframes cv-cursor-blink { 50% { opacity: 0; } }
@keyframes cv-compile-progress { to { transform: scaleX(1); } }.hero-note{ position: absolute; z-index: 3; font-family: var(--mono); font-size: .62rem; line-height: 1.5; text-transform: uppercase; }.hero-note-left{ left: 0; bottom: 2rem; }.hero-note-right{ right: 0; bottom: 10%; text-align: right; }.hero-reveal{
  --reveal-x: 50%;
  --reveal-y: 50%;
  --reveal-radius: 0px;
  --reveal-shift-x: 0px;
  --reveal-shift-y: 0px;
  position: relative; z-index: 1; justify-self: end; overflow: hidden;
  width: min(100%, 29rem); aspect-ratio: .82;
  background: var(--paper-deep); border: 1px solid var(--ink); cursor: crosshair;
  isolation: isolate;
}.hero-reveal::after{
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.36), transparent 70%);
  translate: -130% 0; transition: translate .8s ease;
}.hero-reveal:hover::after{ translate: 130% 0; }.hero-reveal-layer{
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2rem);
}.hero-reveal-layer::before{
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 2.4rem 2.4rem;
}.hero-reveal-front{ background: var(--paper-deep); color: var(--ink); }.hero-reveal-front::after{
  content: ""; position: absolute; right: -12%; bottom: -8%; z-index: -1;
  width: 72%; aspect-ratio: 1; border: 1px solid var(--accent-dark); border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(116,169,255,.12), 0 0 0 6rem rgba(116,169,255,.08);
}.hero-reveal-back{
  z-index: 1; overflow: hidden; color: white;
  background:
    radial-gradient(circle at 15% 20%, #74a9ff 0 8%, transparent 35%),
    radial-gradient(circle at 88% 75%, #185bb5 0 10%, transparent 42%),
    linear-gradient(145deg, #0b1f3a 10%, #17477f 55%, #74a9ff);
  mask-image: radial-gradient(circle var(--reveal-radius) at var(--reveal-x) var(--reveal-y), #000 0 62%, rgba(0,0,0,.92) 72%, transparent 100%);
}.hero-reveal-back::before{
  opacity: .18; background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  transform: translate(var(--reveal-shift-x), var(--reveal-shift-y)) scale(1.08);
}.hero-reveal-back::after{
  content: ""; position: absolute; inset: 14%; z-index: -1;
  border: 1px solid rgba(255,255,255,.35); transform: rotate(12deg) translate(var(--reveal-shift-x), var(--reveal-shift-y));
  box-shadow: 0 0 0 2.5rem rgba(255,255,255,.04), 0 0 0 5rem rgba(255,255,255,.025);
}.hero-reveal-kicker,
.hero-reveal-hint{
  position: relative; z-index: 1; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
}.hero-reveal-hint{ align-self: flex-end; }.hero-reveal-layer strong{
  position: relative; z-index: 1; align-self: center; margin-block: auto;
  font-family: "Manrope", sans-serif; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; letter-spacing: 0;
  transform: translate(var(--reveal-shift-x), var(--reveal-shift-y)); transition: transform .12s linear;
}.hero-reveal-cursor{
  position: absolute; left: var(--reveal-x); top: var(--reveal-y); z-index: 4; width: 2.25rem; aspect-ratio: 1;
  border: 1px solid rgba(11,31,58,.7); border-radius: 50%; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.6); transition: opacity .2s ease, transform .2s ease;
}.hero-reveal.is-active .hero-reveal-cursor{ opacity: 1; transform: translate(-50%, -50%) scale(1); }


@keyframes move { to { transform: translateX(-50%); } }

@keyframes persona-scan {
  0%, 18% { background-position: 145% 0; }
  46%, 100% { background-position: -70% 0; }
}

@keyframes persona-signal {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 .34rem rgba(71,179,156,.13), 0 0 1.2rem rgba(71,179,156,.5);
  }
  42% {
    transform: scale(1.18);
    box-shadow: 0 0 0 .18rem rgba(71,179,156,.22), 0 0 1.7rem rgba(71,179,156,.72);
  }
}

@keyframes persona-ring {
  0% {
    opacity: .6;
    transform: scale(.55);
  }
  68%, 100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.section-block{ padding-block: clamp(5rem, 10vw, 9rem); }.section-heading{ display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; margin-bottom: 3rem; }.section-heading .eyebrow{ grid-column: 1 / -1; }.ia-section{
  border-block: 1px solid var(--line);
}.ia-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}.ia-card{
  position: relative;
  min-height: 18rem;
  padding: 1.25rem;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  transition: color .24s ease, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}.ia-card::before{
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: .35rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-green));
  transition: height .34s cubic-bezier(.2,.8,.2,1);
}.ia-card::after{
  content: "→";
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
  font-family: var(--mono);
  font-size: 1.35rem;
  line-height: 1;
  transform: translateX(-.35rem);
  opacity: .55;
  transition: transform .24s ease, opacity .24s ease;
}.ia-card > *{
  position: relative;
  z-index: 1;
}.ia-card span{
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: .35rem .55rem;
  margin-bottom: 2.5rem;
  color: var(--accent-dark);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.74);
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 500;
  text-transform: uppercase;
}.ia-card h3{
  margin-bottom: .8rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}.ia-card p{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}.ia-card:hover,
.ia-card:focus-visible{
  color: var(--ink);
  transform: translateY(-.35rem);
}.ia-card:hover::before,
.ia-card:focus-visible::before{
  height: 100%;
}.ia-card:hover::after,
.ia-card:focus-visible::after{
  opacity: 1;
  transform: translateX(0);
}.ia-card:hover p,
.ia-card:focus-visible p{
  color: rgba(17,34,56,.74);
}.case-controls{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -1rem 0 1.25rem;
}.case-detail-button:focus-visible{
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}.case-grid{ display: grid; grid-template-columns: 1.25fr .75fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }.case-card{
  position: relative; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff; transition: color .45s ease, background .45s ease;
}.case-card[hidden]{ display: none; }.case-card::before{ content: ""; position: absolute; inset: auto 0 0; height: 0; background: var(--accent); transition: height .45s cubic-bezier(.2,.7,.2,1); }.case-card > *{ position: relative; z-index: 1; }.case-card:hover::before{ height: 100%; }.case-featured{ grid-row: span 2; min-height: 721px; background: var(--ink); color: white; }.case-index{ color: var(--accent-dark); font-family: var(--mono); font-size: .72rem; }.case-featured .case-index,
.case-featured .case-type{ color: var(--accent); }.case-type{ color: var(--accent-dark); font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }.case-card p:not(.case-type){ color: var(--muted); }.case-featured p:not(.case-type){ color: rgba(255,255,255,.7); }.case-card:hover,
.case-card:hover p:not(.case-type),
.case-card:hover .case-type,
.case-card:hover .case-index{ color: var(--ink); }.tag-list{ display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }.tag-list li{ padding: .35rem .65rem; background: var(--paper); border-radius: 6px; color: var(--ink); font-size: .75rem; font-weight: 600; }.case-detail-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  margin-top: 1.25rem;
  padding: .65rem .85rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 700 .68rem/1 var(--mono);
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}.case-detail-button:hover{
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}.case-featured .case-detail-button:hover{
  background: white;
  color: var(--ink);
}.case-preview-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-top: 1.5rem;
}.case-preview-strip a{
  display: block;
  cursor: zoom-in;
}.case-preview-strip a:focus-visible{
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}.case-preview-strip img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(11, 31, 58, .14);
  background: var(--paper-deep);
}

.section-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}


.subpage-hero{
  min-height: auto;
  padding-top: clamp(9rem, 15vw, 13rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.subpage-hero h1{
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: .9;
  letter-spacing: 0;
}

.subpage-hero > p:not(.eyebrow){
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.case-list{
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: 0;
}

.case-story{
  scroll-margin-top: 7rem;
  padding: clamp(1.35rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
}

.case-story h2{
  max-width: 760px;
  margin-bottom: .7rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .95;
}

.case-lead{
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.case-preview-wide{
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin-block: 1.5rem 2rem;
}

.case-story-weave{
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(139,183,255,.16), transparent 34%),
    linear-gradient(155deg, rgba(21, 32, 49, .95), rgba(21, 32, 49, .86));
  color: #fff;
}

.case-story-weave .case-type,
.case-story-weave .case-lead{
  color: rgba(255, 255, 255, .72);
}

.case-story-weave .case-dialog-grid section{
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.case-story-weave .case-dialog-grid span{
  color: #b9d3ff;
}

.case-story-weave .case-dialog-grid p{
  color: rgba(255, 255, 255, .74);
}

.case-weave-visual{
  margin-block: clamp(1.4rem, 4vw, 2.4rem);
  padding: clamp(.55rem, 1vw, .85rem);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 22%, rgba(139,183,255,.16), transparent 28%),
    rgba(6, 8, 13, .58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.case-weave-visual a{
  display: block;
  cursor: zoom-in;
}

.case-weave-visual a:focus-visible{
  outline: 2px solid #b9d3ff;
  outline-offset: 4px;
}

.case-weave-visual img{
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 411;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #0b0b10;
}

.timeline-content h2{
  margin-bottom: .3rem;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
}

@media (max-width: 900px) {


.subpage-hero h1{
    font-size: clamp(2.5rem, 14vw, 5rem);
  }
}

@media (max-width: 650px) {.section-actions{
    align-items: stretch;
    flex-direction: column;
  }

.section-actions .button{
    width: 100%;
  }

.case-story{
    padding: 1.1rem;
  }

.case-preview-wide{
    grid-template-columns: 1fr;
  }
}

.agent-section{
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 6vw, 5rem); background: var(--accent); border: 1px solid var(--ink);
}.agent-section h2{ max-width: 650px; }.agent-intro{ max-width: 680px; font-size: clamp(1rem, 1.5vw, 1.2rem); }.agent-proof{
  display: flex; gap: .8rem; align-items: flex-start; max-width: 650px; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 31, 58, .3);
}.agent-proof p{ margin: 0; }.agent-status{
  flex: 0 0 auto; width: .7rem; aspect-ratio: 1; margin-top: .45rem; background: var(--ink); border-radius: 50%;
  box-shadow: 0 0 0 .3rem rgba(11, 31, 58, .15);
}


@keyframes tom-answer-in { from { opacity: .4; transform: translateY(.25rem); } }

.skills-section{ border-block: 1px solid var(--line); }.skills-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }.skill-card{ padding: 1.5rem 0; border-top: 3px solid var(--ink); }.skill-card span{ color: var(--accent-dark); font-weight: 800; }.skill-card h3{ margin-top: 3rem; }.skill-card p{ color: var(--muted); }

.timeline{ border-top: 1px solid var(--line); }.timeline-item{
  display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; padding-block: 2rem; border-bottom: 1px solid var(--line);
}.timeline-meta{ display: grid; grid-template-columns: 7rem 4.2rem; align-items: center; gap: .75rem; }.timeline-date{ margin: 0; color: var(--accent-dark); font-weight: 800; }.timeline-content{ position: relative; }.timeline-logo{
  display: grid; place-items: center; width: 4.2rem; height: 2.4rem;
  padding: 0; background: transparent; border: 0;
}.timeline-logo img{
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain;
}.timeline-logo-badge img{ width: 2.4rem; height: 2.4rem; }.timeline-item h3{ margin-bottom: .3rem; }.timeline-item p:last-child{ margin: 0; color: var(--muted); }

.contact-section{
  margin-bottom: 1.5rem; padding: clamp(2rem, 7vw, 6rem); background: var(--ink); color: white;
}.contact-section h2{ max-width: 900px; }.contact-section > p:not(.eyebrow){ max-width: 650px; color: rgba(255,255,255,.65); font-size: 1.15rem; }.button-light{ background: var(--accent); color: var(--ink); border-color: var(--accent); }.text-link{ display: inline-flex; align-items: center; gap: .4rem; padding: .75rem; color: white; font-weight: 700; }.site-footer{
  display: flex; justify-content: space-between; width: min(calc(100% - 2.5rem), var(--max));
  margin: auto; padding-block: 2rem; color: var(--muted); font-size: .85rem;
}.image-lightbox{
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(2.5rem, 1fr) minmax(0, 1180px) minmax(2.5rem, 1fr);
  align-items: center;
  gap: clamp(.5rem, 2vw, 1rem);
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(11, 31, 58, .92);
}.image-lightbox[hidden]{ display: none; }.lightbox-frame{
  grid-column: 2;
  margin: 0;
  min-width: 0;
}.lightbox-frame img{
  display: block;
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: white;
}.lightbox-frame figcaption{
  margin-top: .75rem;
  color: white;
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  text-align: center;
}.lightbox-close,
.lightbox-nav{
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
  color: white;
  cursor: pointer;
}.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible{
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}.lightbox-close:focus-visible,
.lightbox-nav:focus-visible{
  outline: 2px solid white;
  outline-offset: 3px;
}.lightbox-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  aspect-ratio: 1;
  font-size: 1.7rem;
}.lightbox-nav{
  width: clamp(2.5rem, 5vw, 3.5rem);
  aspect-ratio: 1;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}.lightbox-prev{ grid-column: 1; justify-self: end; }.lightbox-next{ grid-column: 3; justify-self: start; }

.case-dialog{
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(11,31,58,.72);
  backdrop-filter: blur(16px);
}.case-dialog[hidden]{ display: none; }.case-dialog h2{
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .98;
}.case-dialog-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}.case-dialog-grid section{
  min-height: 12rem;
  padding: 1.1rem;
  background: white;
}.case-dialog-grid span{
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: .62rem;
  text-transform: uppercase;
}.case-dialog-grid p{
  margin: .7rem 0 0;
  color: var(--ink);
}.case-dialog-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}.case-dialog-tags li{
  padding: .4rem .7rem;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: .72rem;
  font-weight: 700;
}

/* Neumorphic redesign layer: soft tactile surfaces without changing the content model. */
.site-header{
  top: .75rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  background: rgba(238, 243, 248, .82);
  box-shadow: var(--shadow-raised-soft);
}

.brand-mark,
.button,
.hero-reveal,
.ia-card,
.case-card,
.agent-section,
.skill-card,
.timeline-item,
.contact-section,
.case-dialog-grid section,
.lightbox-close,
.lightbox-nav{
  border-radius: 8px;
}

.brand-mark{
  background: var(--surface);
  border-color: rgba(255,255,255,.74);
  box-shadow: var(--shadow-raised-soft);
}

.site-nav a{
  border-radius: 8px;
  transition: box-shadow .2s ease, color .2s ease, background .2s ease;
}

.site-nav a:hover{
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
}


h1,
h2,
h3,
.hero-reveal-layer strong{
  letter-spacing: 0;
}

h1 em{
  color: var(--accent-dark);
  text-shadow: 1px 1px 0 rgba(255,255,255,.74);
}

.eyebrow{
  color: var(--accent-dark);
  letter-spacing: .08em;
}

.button{
  border-color: rgba(255,255,255,.7);
  background: var(--surface);
  box-shadow: var(--shadow-raised-soft);
}

.button:hover{
  box-shadow: 7px 7px 16px rgba(142,157,178,.28), -7px -7px 16px rgba(255,255,255,.9);
}

.button:active{
  box-shadow: var(--shadow-pressed);
  transform: translateY(0);
}

.button-primary{
  background: linear-gradient(145deg, #173252, #0f2035);
  color: white;
  box-shadow: 10px 10px 22px rgba(142,157,178,.38), -10px -10px 22px rgba(255,255,255,.82);
}

.button-primary:hover{
  background: linear-gradient(145deg, var(--accent-dark), #163760);
}

.button-secondary:hover,
.cv-download.is-compiling{
  background: var(--surface-high);
}

.hero{
  min-height: calc(100svh - 80px);
}

.hero::before{
  content: "";
  position: absolute;
  inset: clamp(2rem, 5vw, 4rem) -1rem;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.5), rgba(221,230,239,.7));
  box-shadow: var(--shadow-inset);
}

.hero-note{
  color: rgba(17,34,56,.58);
}

.hero-reveal{
  border-color: rgba(255,255,255,.72);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.hero-reveal-front{
  background: linear-gradient(145deg, #f8fbff, #dfe8f1);
}

.hero-reveal-front::after{
  border-color: rgba(36,90,159,.38);
  box-shadow: var(--shadow-inset);
}

.hero-reveal-back{
  background:
    linear-gradient(145deg, rgba(21,32,49,.94), rgba(20,69,64,.86) 52%, rgba(71,179,156,.9)),
    #152031;
}

.hero-reveal-back::after{
  border-color: rgba(255,255,255,.52);
  box-shadow: inset 10px 10px 20px rgba(17,34,56,.12), inset -10px -10px 20px rgba(255,255,255,.14);
}

.hero-reveal-cursor{
  border-color: rgba(255,255,255,.74);
  background: rgba(238,243,248,.82);
  box-shadow: var(--shadow-raised-soft);
}


.ia-card{
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(145deg, #f8fbff, #e1e9f2);
  box-shadow: var(--shadow-raised);
}

.ia-card:hover,
.ia-card:focus-visible{
  box-shadow: var(--shadow-pressed);
}


.case-grid{
  gap: 1rem;
  background: transparent;
  border: 0;
}

.case-card{
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, #f8fbff, #e1e9f2);
  box-shadow: var(--shadow-raised);
}

.case-card::before{
  background: linear-gradient(145deg, rgba(21,32,49,.86), rgba(71,179,156,.84));
}

.case-featured{
  background: linear-gradient(145deg, #173252, #0f2035);
  box-shadow: 14px 14px 30px rgba(94,112,136,.42), -12px -12px 28px rgba(255,255,255,.75);
}

.case-card:hover{
  box-shadow: var(--shadow-pressed);
}

.tag-list li,
.case-dialog-tags li{
  border: 1px solid rgba(255,255,255,.7);
  background: var(--surface);
  box-shadow: 4px 4px 10px rgba(142,157,178,.22), -4px -4px 10px rgba(255,255,255,.78);
}

.case-detail-button{
  border-color: rgba(255,255,255,.72);
  background: var(--surface);
  box-shadow: var(--shadow-raised-soft);
}

.case-detail-button:hover,
.case-featured .case-detail-button:hover{
  background: linear-gradient(145deg, #173252, #0f2035);
  color: white;
  box-shadow: var(--shadow-pressed);
}

.timeline{
  border-color: rgba(17,34,56,.1);
}


.case-preview-strip img{
  border-color: rgba(255,255,255,.7);
  border-radius: 8px;
  box-shadow: var(--shadow-raised-soft);
}

.agent-section{
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, rgba(248,251,255,.92), rgba(221,230,239,.82));
  box-shadow: var(--shadow-raised);
}


.skills-section{
  border: 0;
}

.skills-grid{
  gap: 1.1rem;
}

.skill-card{
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, #f8fbff, #e1e9f2);
  box-shadow: var(--shadow-raised-soft);
}

.skill-card h3{
  margin-top: 2rem;
}

.skill-card:nth-child(2) span{ color: var(--accent-warm); }.skill-card:nth-child(3) span{ color: var(--accent-green); }

/* Task 3: make the competence cards feel interactive without shifting layout. */
.skills-grid{
  align-items: stretch;
  perspective: 1200px;
}

.skill-card{
  --skill-accent: var(--accent-dark);
  --skill-glow: rgba(36, 90, 159, .18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 15rem;
  transform: translateZ(0) scale(1);
  transform-origin: center;
  transition:
    transform .42s cubic-bezier(.2, .8, .2, 1),
    opacity .32s ease,
    border-color .32s ease,
    box-shadow .42s cubic-bezier(.2, .8, .2, 1),
    background .42s ease;
}

.skill-card:nth-child(2){
  --skill-accent: var(--accent-warm);
  --skill-glow: rgba(255, 139, 111, .2);
}

.skill-card:nth-child(3){
  --skill-accent: var(--accent-green);
  --skill-glow: rgba(71, 179, 156, .2);
}

.skill-card:nth-child(4){
  --skill-accent: var(--accent);
  --skill-glow: rgba(125, 178, 255, .22);
}

.skill-card::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, var(--skill-glow), transparent 34%),
    linear-gradient(145deg, #ffffff, #e4ebf2);
  opacity: .86;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.skill-card::after{
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  z-index: -1;
  height: .18rem;
  background: linear-gradient(90deg, var(--skill-accent), transparent);
  transform: scaleX(.34);
  transform-origin: left;
  opacity: .7;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.skill-card span{
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--skill-accent) 34%, transparent);
  background: color-mix(in srgb, var(--skill-accent) 10%, white);
  color: var(--skill-accent);
  font-family: var(--mono);
  font-size: .7rem;
}

.skill-card h3,
.skill-card p,
.skill-card span{
  position: relative;
  z-index: 1;
}

.skills-grid:has(.skill-card:hover) .skill-card:not(:hover),
.skills-grid:has(.skill-card:focus-visible) .skill-card:not(:focus-visible){
  opacity: .62;
  transform: scale(.965);
}

.skill-card:hover,
.skill-card:focus-visible{
  border-color: color-mix(in srgb, var(--skill-accent) 42%, white);
  box-shadow: 0 22px 46px rgba(86, 104, 128, .2), 0 0 0 1px var(--skill-glow);
  outline: 2px solid var(--skill-accent);
  outline-offset: 4px;
  transform: translateY(-.55rem) scale(1.045);
}

.skill-card:hover::before,
.skill-card:focus-visible::before{
  opacity: 1;
  transform: scale(1.05);
}

.skill-card:hover::after,
.skill-card:focus-visible::after{
  opacity: 1;
  transform: scaleX(1);
}

.timeline{
  display: grid;
  gap: 1rem;
  border-top: 0;
}

.timeline-item{
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, #f8fbff, #e1e9f2);
  box-shadow: var(--shadow-raised-soft);
}

.timeline-logo{
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-pressed);
}

.contact-section{
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, #173252, #0f2035);
  box-shadow: var(--shadow-raised);
}

.button-light{
  background: linear-gradient(145deg, var(--accent), #9ac3ff);
  color: var(--ink);
}

.text-link{
  border-radius: 8px;
}

.text-link:hover{
  background: rgba(255,255,255,.08);
}

.case-dialog{
  background: rgba(17,34,56,.56);
}


.case-dialog-grid section{
  border-color: rgba(255,255,255,.72);
  background: var(--surface);
  box-shadow: var(--shadow-raised-soft);
}

.case-dialog-grid{
  gap: 1rem;
  background: transparent;
  border: 0;
}

.case-dialog-tags li{
  color: var(--ink);
}

.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }.reveal.visible{ opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {.hero{ min-height: 80svh; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr); gap: 1.5rem; }h1{ font-size: clamp(3.5rem, 8vw, 5.2rem); }.section-heading,
.case-grid,
.agent-section{ grid-template-columns: 1fr; }.ia-grid{ grid-template-columns: 1fr 1fr; }.case-controls{ align-items: flex-start; flex-direction: column; }.case-featured{ grid-row: auto; min-height: 480px; }.skills-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1199px) {
}
@media (max-width: 650px) {.site-header{ top: .5rem; width: calc(100% - 1.5rem); padding: .7rem; }.site-header{ min-height: 4rem; padding-right: 5.25rem; }.brand{ gap: .6rem; font-size: .95rem; }.brand > span:last-child{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.menu-toggle{
    position: absolute; top: 50%; right: .7rem; transform: translateY(-50%);
    display: block; border: 1px solid rgba(255,255,255,.72); border-radius: 8px; padding: .55rem .8rem;
    flex: 0 0 auto; margin-left: .75rem; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; box-shadow: var(--shadow-raised-soft);
  }.menu-toggle:hover{ transform: translateY(-50%); }.site-nav{
    position: absolute; z-index: 30; top: calc(100% + .5rem); left: 0; right: 0; display: none;
    flex-direction: column; padding: .5rem; background: var(--surface); border: 1px solid rgba(255,255,255,.72); border-radius: 8px;
    box-shadow: var(--shadow-raised);
  }.site-nav.open{ display: flex; }.hero{
    min-height: calc(100svh - 65px);
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    overflow: hidden;
    padding-block: clamp(4.5rem, 11vh, 6rem) 4rem;
  }.hero-copy{ z-index: 2; }h1{
    max-width: 22rem;
    margin-bottom: 1.25rem;
    font-size: clamp(2.75rem, 13vw, 4rem);
    line-height: .94;
    letter-spacing: 0;
  }h1 em{ display: inline; }h1 span{ margin-left: 0; }.hero-intro{
    width: min(100%, 22rem);
    padding-inline: 0;
    font-size: .92rem;
    line-height: 1.55;
  }.hero-actions{ position: relative; z-index: 2; gap: .55rem; margin-top: 1.5rem; }.hero-actions .button{ min-height: 2.9rem; padding: .65rem 1rem; font-size: .85rem; }.hero-note{ display: none; }.hero-reveal{
    display: none;
  }.section{ width: min(calc(100% - 1.5rem), var(--max)); }.skills-grid{ grid-template-columns: 1fr; }.timeline-item{ grid-template-columns: 1fr; gap: .5rem; }.timeline-meta{ grid-template-columns: 7rem 3.7rem; }.timeline-logo{ width: 3.7rem; height: 2.1rem; }.timeline-logo-badge img{ width: 2.1rem; height: 2.1rem; }.site-footer{ display: block; width: calc(100% - 1.5rem); }.case-preview-strip{ grid-template-columns: 1fr; }.case-card{ min-height: 300px; }.case-dialog{ align-items: end; padding: .75rem; }.case-dialog-grid{ grid-template-columns: 1fr; }.case-dialog-grid section{ min-height: 0; }.image-lightbox{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
    padding-top: 4.5rem;
  }.lightbox-frame{ grid-column: 1 / -1; }.lightbox-nav{ width: 3rem; }.lightbox-prev{ grid-column: 1; justify-self: end; }.lightbox-next{ grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {html{ scroll-behavior: auto; }.reveal{ opacity: 1; transform: none; transition: none; }.cv-download.is-compiling .cv-download-cursor{ animation: none; }.cv-download.is-compiling::after{ animation: none; transform: scaleX(1); }.hero-reveal::after,
.hero-reveal-layer strong{ transition: none; }
}

/* V2 polish: lighter,
faster soft UI with clearer hierarchy. */
:root{
  --paper: #f1f5f9;
  --paper-deep: #e4ebf2;
  --surface: #f4f7fb;
  --surface-high: #ffffff;
  --ink: #102033;
  --muted: #51657a;
  --line: rgba(16, 32, 51, .1);
  --shadow-raised: 0 14px 34px rgba(86, 104, 128, .16), -6px -6px 18px rgba(255, 255, 255, .72);
  --shadow-raised-soft: 0 8px 22px rgba(86, 104, 128, .13), -4px -4px 14px rgba(255, 255, 255, .72);
  --shadow-inset: inset 4px 4px 10px rgba(86, 104, 128, .14), inset -4px -4px 10px rgba(255, 255, 255, .72);
  --shadow-pressed: inset 3px 3px 8px rgba(86, 104, 128, .18), inset -3px -3px 8px rgba(255, 255, 255, .78);
}

body{
  background: linear-gradient(180deg, #f8fbff 0, var(--paper) 32rem, #edf3f7 100%);
}

.site-header{
  background: rgba(244, 247, 251, .96);
  backdrop-filter: none;
  box-shadow: 0 12px 30px rgba(70, 86, 108, .11);
}

.site-header{
  top: .6rem;
}

.brand-mark,
.button,
.case-card,
.skill-card,
.timeline-item,
.case-dialog-grid section{
  box-shadow: var(--shadow-raised-soft);
}

.hero{
  min-height: auto;
  padding-block: clamp(5rem, 8vw, 7rem) clamp(4rem, 7vw, 6rem);
}

.hero::before{
  display: none;
}

h1{
  max-width: 780px;
  font-size: clamp(3.5rem, 6.4vw, 6.5rem);
  line-height: .95;
}

h2{
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
}

.hero-intro,
.section-heading > p:last-child{
  color: var(--muted);
}

.button-primary,
.contact-section{
  background: linear-gradient(145deg, #132842, #0d1c2f);
}

.button-primary{
  box-shadow: 0 12px 24px rgba(16, 32, 51, .18);
}

.button-secondary,
.cv-download,
.case-detail-button{
  background: rgba(255, 255, 255, .42);
}

.button:hover,
.case-card:hover,
.case-detail-button:hover{
  transform: translateY(-1px);
}

.hero-reveal{
  width: min(100%, 25.5rem);
  background: linear-gradient(145deg, #ffffff, #e6edf4);
  box-shadow: 0 18px 42px rgba(86, 104, 128, .14);
}

.hero-reveal-front{
  background: linear-gradient(145deg, #ffffff, #e6edf4);
}

.hero-reveal-front::after{
  box-shadow: none;
  opacity: .32;
}

.hero-reveal-back{
  background: linear-gradient(145deg, #152031 0, #144540 52%, #47b39c 100%);
}


.case-controls{
  align-items: flex-start;
}

.case-grid{
  gap: 1.1rem;
}

.case-card{
  min-height: 330px;
  background: linear-gradient(145deg, #ffffff, #e8eef5);
  border-color: rgba(255, 255, 255, .76);
}

.case-featured{
  min-height: 672px;
  background: linear-gradient(145deg, #132842, #0d1c2f);
  box-shadow: 0 18px 42px rgba(16, 32, 51, .18);
}

.case-card::before{
  opacity: .9;
}

.tag-list li,
.case-dialog-tags li{
  box-shadow: none;
  background: rgba(255, 255, 255, .58);
}

.agent-section,
.contact-section{
  box-shadow: 0 18px 42px rgba(16, 32, 51, .14);
}

.agent-section{
  background: linear-gradient(145deg, #ffffff, #e7eef5);
}


.skill-card{
  background: linear-gradient(145deg, #ffffff, #e8eef5);
}

.timeline-item{
  background: rgba(255, 255, 255, .48);
}

.timeline-logo{
  box-shadow: var(--shadow-inset);
}


@media (max-width: 900px) {.hero{
    grid-template-columns: 1fr;
    padding-block: clamp(4rem, 9vw, 5.5rem);
  }

.hero-reveal{
    justify-self: stretch;
    width: min(100%, 22rem);
    margin-inline: auto;
  }

.case-featured{
    min-height: 420px;
  }
}

@media (max-width: 650px) {.site-header{
    position: sticky;
    right: auto;
    min-height: 3.8rem;
  }

.menu-toggle{
    right: .65rem;
  }

.hero{
    min-height: auto;
    padding-block: 3.75rem 4.5rem;
  }

h1{
    max-width: 23rem;
    font-size: clamp(2.65rem, 11vw, 3.65rem);
    line-height: 1;
  }

.hero-intro{
    color: var(--muted);
  }

.hero-actions .button{
    flex: 1 1 9rem;
  }

.section-block{
    padding-block: clamp(4rem, 12vw, 5.5rem);
  }

.case-card{
    min-height: 280px;
  }
}

/* 2026 UX/UI standards pass: accessibility,
mobile ergonomics and smoother rendering. */
html{
  scroll-padding-top: 6rem;
}

body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a,
button,
summary{
  touch-action: manipulation;
}

.section-block,
.contact-section{
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.section,
.contact-section{
  scroll-margin-top: 6rem;
}

.button,
.case-detail-button,
.menu-toggle,
.lightbox-close,
.lightbox-nav,
.site-nav a,
.ia-card,
.text-link,
.case-preview-strip a{
  min-height: 44px;
}

.site-nav a,
.text-link{
  display: inline-flex;
  align-items: center;
}

:focus-visible,
.button:focus-visible,
.case-detail-button:focus-visible,
.menu-toggle:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible,
.site-nav a:focus-visible,
.ia-card:focus-visible,
.text-link:focus-visible,
.case-preview-strip a:focus-visible{
  outline: 3px solid #47b39c;
  outline-offset: 4px;
}

.skip-link{
  box-shadow: 0 12px 24px rgba(16,32,51,.18);
}

.skip-link:focus{
  top: 1rem;
  outline: 3px solid #102033;
  outline-offset: 3px;
}

.site-header,
.case-card,
.skill-card,
.ia-card,
.timeline-item,
.agent-section,
.contact-section,
.hero-reveal{
  contain: layout paint;
}

.site-header{
  contain: none;
}

.case-card p,
.timeline-item p,
.agent-intro,
.contact-section > p:not(.eyebrow){
  max-width: 68ch;
}


/* Final button override: smooth transform wipe wins over the earlier pixel experiment. */
.button,
.case-detail-button{
  position: relative;
  min-width: 120px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  transform: skew(-21deg);
  transition: color .32s ease, box-shadow .32s ease, transform .32s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.button > span,
.case-detail-button > span{
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: skew(21deg);
}

.button::before,
.case-detail-button::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(135deg, #152031, #47b39c);
  background-size: 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform .62s cubic-bezier(.16, 1, .3, 1),
    opacity .18s ease;
  animation: none;
  clip-path: none;
  will-change: transform, opacity;
}

.button::after,
.case-detail-button::after{
  display: none;
}

.button:hover,
.button:focus-visible,
.case-detail-button:hover,
.case-detail-button:focus-visible{
  color: white;
  transform: skew(-21deg) translateY(-2px);
  box-shadow: 0 14px 26px rgba(16, 32, 51, .18);
}

.button:hover::before,
.button:focus-visible::before,
.case-detail-button:hover::before,
.case-detail-button:focus-visible::before{
  opacity: 1;
  transform: scaleX(1);
  animation: none;
  clip-path: none;
}

.button-primary,
.button-light{
  color: white;
}

.button-primary::before,
.button-light::before{
  background: linear-gradient(135deg, #152031, #47b39c);
}

.button-secondary,
.case-detail-button{
  background: #fff;
  color: var(--ink);
}

.case-featured .case-detail-button::before{
  background: linear-gradient(135deg, #ffffff, #47b39c);
}

.case-featured .case-detail-button:hover,
.case-featured .case-detail-button:focus-visible{
  color: var(--ink);
}

@media (hover: none) {.button:hover,
.case-detail-button:hover,
.site-nav a:hover{
    transform: none;
  }

.skills-grid:has(.skill-card:hover) .skill-card:not(:hover){
    opacity: 1;
    transform: none;
  }

.skill-card:hover{
    transform: none;
  }
}

@media (max-width: 650px) {html{
    scroll-padding-top: 5rem;
  }

.section,
.contact-section{
    scroll-margin-top: 5rem;
  }

.ia-grid{
    grid-template-columns: 1fr;
  }

.ia-card{
    min-height: 0;
    padding: 1.1rem;
  }

.ia-card span{
    margin-bottom: 1.25rem;
  }

.site-header{
    padding-right: .7rem;
  }

.menu-toggle{
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    transform: none;
  }

.menu-toggle:hover,
.menu-toggle:focus-visible{
    transform: none;
  }

.site-nav a{
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding-block: .8rem;
  }


.button,
.case-detail-button{
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {*,
*::before,
*::after{
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* PerryW-inspired editorial polish: compact identity,
framed hero,
pill nav and work cards. */
.site-header{
  top: .75rem;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.72);
  border-bottom-color: rgba(16,32,51,.08);
  border-radius: 8px;
}

.site-nav{
  gap: .25rem;
  padding: .22rem;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 999px;
}

.site-nav a{
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible{
  background: rgba(16,32,51,.08);
}

.hero{
  grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
  min-height: calc(100svh - 5.5rem);
}

.hero-persona,
.hero-work-cue{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
}

.hero-persona{
  position: relative;
  margin: 0 0 1.2rem;
  overflow: visible;
  background:
    linear-gradient(90deg, transparent 0 36%, var(--ink) 47%, var(--accent-green) 52%, transparent 66% 100%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke: .025em rgba(96,113,134,.62);
  text-shadow: 0 0 .01px rgba(96,113,134,.38);
  animation: persona-scan 5.8s cubic-bezier(.42, 0, .18, 1) infinite;
}

.hero-persona span{
  position: relative;
  flex: 0 0 auto;
  width: .58rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #47b39c;
  box-shadow: 0 0 0 .34rem rgba(71,179,156,.13), 0 0 1.2rem rgba(71,179,156,.55);
  animation: persona-signal 2.4s ease-out infinite;
}

.hero-persona span::after{
  content: "";
  position: absolute;
  inset: -.52rem;
  border: 1px solid rgba(71,179,156,.42);
  border-radius: inherit;
  animation: persona-ring 2.4s ease-out infinite;
}

.hero-copy .eyebrow{
  display: none;
}

.hero-work-cue{
  margin-top: clamp(2rem, 5vw, 5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-work-cue span{
  font-size: 1.55rem;
  line-height: 1;
  transition: transform .24s ease;
}

.hero-work-cue:hover span,
.hero-work-cue:focus-visible span{
  transform: translateY(.25rem);
}

.hero-reveal{
  padding-top: 2.15rem;
  border-radius: 8px;
  border-color: rgba(16,32,51,.18);
}

.hero-reveal::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 2.15rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 1.4rem 50%, #ff6b5f 0 .28rem, transparent .3rem),
    radial-gradient(circle at 2.45rem 50%, #ffc857 0 .28rem, transparent .3rem),
    radial-gradient(circle at 3.5rem 50%, #47d16c 0 .28rem, transparent .3rem),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.28));
  border-bottom: 1px solid rgba(16,32,51,.1);
}

.hero-reveal::after{
  z-index: 6;
}

.hero-reveal-layer{
  top: 2.15rem;
}

#arbejde .section-heading{
  align-items: end;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

#arbejde .section-heading .eyebrow::before{
  content: "↓";
  margin-right: .8rem;
  color: var(--ink);
  font-size: 1.45rem;
  vertical-align: -.18rem;
}

.case-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: transparent;
  border: 0;
}

.case-card,
.case-featured{
  grid-column: auto;
  grid-row: auto;
  min-height: 15rem;
  border: 1px solid rgba(16,32,51,.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16,32,51,.11);
}

.case-card{
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  background: rgba(255,255,255,.66);
}

.case-featured{
  min-height: 20rem;
  background: linear-gradient(145deg, #132842, #0d1c2f);
}

.case-card::after{
  content: "→";
  position: absolute;
  right: 1.5rem;
  top: 1.25rem;
  z-index: 2;
  font-size: 1.8rem;
  line-height: 1;
  opacity: .62;
  transition: transform .24s ease, opacity .24s ease;
}

.case-card:hover::after,
.case-card:focus-within::after{
  opacity: 1;
  transform: translateX(.35rem);
}

.case-card h3{
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  letter-spacing: 0;
}

.case-card p:not(.case-type){
  max-width: 58ch;
}

.case-preview-strip{
  max-width: 920px;
}

@media (max-width: 900px) {.site-nav{
    padding: 0;
    background: var(--surface);
    border-radius: 8px;
  }

.hero{
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 650px) {.site-header{
    width: calc(100% - 1.5rem);
    border-radius: 8px;
  }

.hero{
    padding-block: 4rem 3.5rem;
  }

.hero-persona{
    font-size: .66rem;
  }

.hero-work-cue{
    width: 100%;
    margin-top: 2.4rem;
  }

.case-card,
.case-featured{
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.35rem;
  }

.case-card::after{
    right: 1.15rem;
    top: 1rem;
  }

.case-card h3{
    padding-right: 2rem;
    font-size: clamp(1.75rem, 9vw, 2.6rem);
  }
}

@media (min-width: 651px) {.site-header{
    justify-content: flex-start;
  }

.site-nav{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.section-block,
.contact-section{
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.pathfinder{
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  margin-top: clamp(1.2rem, 4vw, 2.5rem);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--ink);
  color: white;
  border: 1px solid rgba(11, 31, 58, .22);
}

.pathfinder .eyebrow{
  color: rgba(255,255,255,.68);
}

.pathfinder h3{
  max-width: 11ch;
  margin: .3rem 0 .7rem;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

.pathfinder p{
  max-width: 52ch;
  margin: 0;
  color: rgba(255,255,255,.68);
}

.pathfinder-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.pathfinder-actions button{
  min-height: 8.5rem;
  padding: 1rem;
  text-align: left;
  color: white;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  cursor: pointer;
  transition: background .24s ease, border-color .24s ease, transform .24s ease;
}

.pathfinder-actions button:hover,
.pathfinder-actions button:focus-visible,
.pathfinder-actions button.is-active{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-.18rem);
}

.pathfinder-actions button:focus-visible{
  outline: 2px solid white;
  outline-offset: 3px;
}

.pathfinder-actions span,
.pathfinder-actions small{
  display: block;
}

.pathfinder-actions span{
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pathfinder-actions small{
  max-width: 20ch;
  margin-top: 2.1rem;
  color: inherit;
  font-size: .9rem;
  line-height: 1.35;
  opacity: .72;
}

.pathfinder + .ia-grid{
  margin-top: 1rem;
}

.case-site-build{
  grid-column: 1 / -1;
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(116,169,255,.18), rgba(135,217,166,.18)),
    #fff;
}

.case-site-build h3{
  max-width: 14ch;
}

.build-log{
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: clamp(1rem, 4vw, 3rem);
  margin-top: 1px;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-top: 0;
}

.build-log h3{
  max-width: 15ch;
  margin: .3rem 0 .8rem;
  font-size: clamp(1.7rem, 3.2vw, 3.1rem);
  letter-spacing: 0;
}

.build-log-copy p:last-child{
  max-width: 48ch;
  color: var(--muted);
}

.build-log-list{
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-log-list li{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .8rem;
  padding: 1rem;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,31,58,.1);
}

.build-log-list span{
  grid-row: span 2;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 800;
}

.build-log-list strong{
  font-size: 1rem;
}

.build-log-list p{
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 900px) {.pathfinder,
.build-log{
    grid-template-columns: 1fr;
  }

.pathfinder-actions{
    grid-template-columns: 1fr;
  }

.pathfinder-actions button{
    min-height: 6.25rem;
  }

.pathfinder-actions small{
    margin-top: 1.1rem;
    max-width: none;
  }
}

/* Smoothness pass: keep the new sections,
but reduce paint-heavy decoration. */
.site-header{
  backdrop-filter: none;
}


.case-card,
.case-featured,
.skill-card,
.ia-card,
.timeline-item,
.agent-section,
.contact-section,
.pathfinder,
.build-log{
  box-shadow: 0 10px 24px rgba(16, 32, 51, .1);
}

.button,
.case-detail-button,
.pathfinder-actions button,
.case-card::after,
.hero-work-cue span{
  transition-duration: .18s;
  will-change: auto;
}

.button::before,
.case-detail-button::before,
.menu-toggle::before,
.text-link::before,
.button::after,
.case-detail-button::after,
.menu-toggle::after,
.text-link::after{
  animation: none !important;
  will-change: auto;
}

.button,
.case-detail-button,
.button > span,
.case-detail-button > span,
.button:hover,
.button:focus-visible,
.case-detail-button:hover,
.case-detail-button:focus-visible,
.pathfinder-actions button:hover,
.pathfinder-actions button:focus-visible,
.pathfinder-actions button.is-active{
  transform: none;
}

.reveal{
  transform: translateY(12px);
  transition: opacity .36s ease, transform .36s ease;
}

@media (max-width: 650px), (hover: none), (pointer: coarse) {html{
    scroll-behavior: auto;
  }


.case-card,
.case-featured,
.skill-card,
.ia-card,
.timeline-item,
.agent-section,
.contact-section,
.pathfinder,
.build-log{
    box-shadow: 0 4px 14px rgba(16, 32, 51, .08);
  }

.reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Personal microcopy: small human notes without adding visual weight. */
.microcopy{
  max-width: 56ch;
  margin: .85rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.55;
}

.hero-microcopy{
  margin-top: 1rem;
}

.microcopy-invert,
.pathfinder .microcopy,
.contact-section .microcopy,
.case-featured .microcopy{
  color: rgba(255, 255, 255, .68);
}

.case-microcopy{
  margin-top: .95rem;
  padding-left: .8rem;
  border-left: 2px solid rgba(36, 90, 159, .24);
}

.case-featured .case-microcopy{
  border-left-color: rgba(125, 178, 255, .42);
}

.section-heading .microcopy{
  grid-column: 2;
  margin-top: -.35rem;
}

.build-log-copy .microcopy{
  margin-top: .7rem;
}

@media (max-width: 900px) {.section-heading .microcopy{
    grid-column: auto;
    margin-top: .35rem;
  }
}

/* Phase 1: clearer scanning,
interactive tracks,
concrete workflow demo. */
.hero-proof-list{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof-list li,
.skill-points li{
  border: 1px solid rgba(17, 34, 56, .1);
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
}

.hero-proof-list li{
  padding: .42rem .7rem;
  border-radius: 999px;
}

.pathfinder-result{
  grid-column: 2;
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-family: var(--mono);
  font-size: .78rem;
}

.skill-points{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.skill-points li{
  padding: .34rem .58rem;
  border-radius: 6px;
}

.case-facts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.15rem 0 0;
}

.case-facts div{
  padding: .75rem;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(17, 34, 56, .1);
  border-radius: 8px;
}

.case-featured .case-facts div{
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

.case-facts dt{
  margin-bottom: .25rem;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-featured .case-facts dt{
  color: var(--accent);
}

.case-facts dd{
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.4;
}

.case-featured .case-facts dd{
  color: rgba(255, 255, 255, .72);
}

.workflow-demo{
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.workflow-demo-panel,
.workflow-steps{
  margin: 0;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.workflow-demo-panel h3{
  max-width: 16ch;
  color: white;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.workflow-demo-panel p:last-child{
  margin-bottom: 0;
  color: rgba(255, 255, 255, .72);
}

.workflow-steps{
  display: grid;
  gap: .65rem;
  list-style: none;
}

.workflow-steps button{
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem .85rem;
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  cursor: pointer;
}

.workflow-steps button:hover,
.workflow-steps button:focus-visible,
.workflow-steps button.is-active{
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.workflow-steps span{
  color: inherit;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
}

@media (max-width: 900px) {.pathfinder-result{
    grid-column: auto;
  }

.workflow-demo,
.case-facts{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {.hero-proof-list{
    gap: .4rem;
  }

.hero-proof-list li,
.skill-points li{
    font-size: .74rem;
  }
}

/* Phase 2 polish: interactive method,
role matching and light microinteractions. */
.chaos-section,
.role-match-section{
  scroll-margin-top: 6rem;
}

.chaos-concept,
.role-match{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.chaos-panel,
.role-panel{
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid rgba(17, 34, 56, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 24px rgba(16, 32, 51, .08);
}

.chaos-panel h3,
.role-panel h3{
  font-size: clamp(1.55rem, 3vw, 2.65rem);
}

.chaos-cloud,
.concept-list{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.chaos-cloud button,
.concept-list li,
.role-tabs button,
.role-grid li{
  min-height: 2.4rem;
  padding: .5rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 34, 56, .12);
  background: rgba(255, 255, 255, .66);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
}

.chaos-cloud button{
  cursor: pointer;
}

.chaos-cloud button:hover,
.chaos-cloud button:focus-visible,
.chaos-cloud button.is-active,
.role-tabs button:hover,
.role-tabs button:focus-visible,
.role-tabs button.is-active{
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.chaos-transform{
  display: grid;
  place-items: center;
  width: 3rem;
}

.chaos-transform span{
  display: block;
  width: 2.2rem;
  aspect-ratio: 1;
  border-top: 2px solid var(--accent-dark);
  border-right: 2px solid var(--accent-dark);
  transform: rotate(45deg);
}

.chaos-panel-output{
  background:
    linear-gradient(135deg, rgba(125, 178, 255, .16), rgba(71, 179, 156, .13)),
    rgba(255, 255, 255, .7);
}

.chaos-panel-output > p:not(.eyebrow){
  color: var(--muted);
}

.role-match{
  grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr);
}

.role-tabs{
  display: grid;
  gap: .55rem;
  align-content: start;
}

.role-tabs button{
  width: 100%;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.role-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.2rem;
}

.role-grid section{
  padding: .85rem;
  border: 1px solid rgba(17, 34, 56, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
}

.role-grid h4{
  margin: 0 0 .65rem;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

.role-grid ul{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-grid li{
  min-height: 0;
  padding: .32rem .52rem;
  font-size: .75rem;
}

.role-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.25rem;
}

.copy-email-button{
  color: var(--ink);
  background: white;
}

.ia-card,
.case-card,
.skill-card,
.chaos-panel,
.role-panel,
.workflow-demo-panel,
.workflow-steps{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ia-card:hover,
.case-card:hover,
.skill-card:hover,
.chaos-panel:hover,
.role-panel:hover{
  transform: translateY(-2px);
}

@media (max-width: 900px) {.chaos-concept,
.role-match,
.role-grid{
    grid-template-columns: 1fr;
  }

.chaos-transform{
    width: auto;
    height: 2rem;
  }

.chaos-transform span{
    transform: rotate(135deg);
  }
}

@media (max-width: 650px) {.chaos-cloud button,
.concept-list li,
.role-tabs button,
.role-grid li{
    font-size: .76rem;
  }
}

@media (prefers-reduced-motion: reduce) {.ia-card,
.case-card,
.skill-card,
.chaos-panel,
.role-panel,
.workflow-demo-panel,
.workflow-steps{
    transition: none;
  }

.hero-persona,
.hero-persona span,
.hero-persona span::after{
    animation: none;
  }

.hero-persona{
    background: none;
    color: var(--muted);
    -webkit-text-stroke: 0;
    text-shadow: none;
  }

html[data-theme="dark"] .hero-persona{
    background: none;
    color: var(--muted);
    -webkit-text-stroke: 0;
    text-shadow: none;
  }
}

/* AI section fix: keep the workflow demo readable and full-width inside the grid. */
.agent-section .workflow-demo{
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: stretch;
  margin-top: 0;
}

.agent-section .workflow-demo-panel,
.agent-section .workflow-steps{
  background: linear-gradient(145deg, #173252, #0f2035);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 30px rgba(16, 32, 51, .14);
}

.agent-section .workflow-demo-panel .eyebrow,
.agent-section .workflow-demo-panel h3,
.agent-section .workflow-demo-panel p,
.agent-section .workflow-demo-panel p:last-child{
  color: white;
}

.agent-section .workflow-demo-panel .eyebrow span{
  color: var(--accent);
}

.agent-section .workflow-demo-panel p:last-child{
  color: rgba(255, 255, 255, .72);
  max-width: 60ch;
}

.agent-section .workflow-steps{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-section .workflow-steps button{
  color: white;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
}

.agent-section .workflow-steps button:hover,
.agent-section .workflow-steps button:focus-visible,
.agent-section .workflow-steps button.is-active{
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 900px) {.agent-section .workflow-demo,
.agent-section .workflow-steps{
    grid-template-columns: 1fr;
  }
}

/* Final button contrast guard: later button variants must not hide labels. */
.button > span,
.cv-download > span,
.copy-email-button > span{
  position: relative;
  z-index: 2;
  color: inherit;
}

.contact-section .button-light{
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.contact-section .button-light:hover,
.contact-section .button-light:focus-visible{
  color: white;
}

.cv-download.is-compiling{
  color: var(--ink) !important;
  background: #fff !important;
  border: 1px solid rgba(17, 34, 56, .16);
  box-shadow: 0 12px 24px rgba(16, 32, 51, .12);
}

.cv-download.is-compiling::before{
  opacity: 0 !important;
  transform: scaleX(0) !important;
}

.cv-download.is-compiling::after{
  display: block !important;
  z-index: 1;
  background: var(--accent-dark);
}

.cv-download.is-compiling > span{
  color: var(--ink) !important;
}

.cv-download:not(.is-compiling) .cv-download-cursor{
  display: none !important;
}

/* Codex 2026 pass: calmer hierarchy,
sharper first screen and better scan rhythm. */
:root{
  --paper: #f4f1eb;
  --paper-deep: #e8edf0;
  --surface: #f8f5ef;
  --surface-high: #fffdf8;
  --ink: #152031;
  --accent: #8bb7ff;
  --accent-dark: #245274;
  --accent-warm: #c7653d;
  --accent-green: #4b8f79;
  --hover-ink: #152031;
  --hover-mint: #47b39c;
  --muted: #66717b;
  --line: rgba(21, 32, 49, .13);
}

body{
  background:
    linear-gradient(90deg, rgba(21,32,49,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21,32,49,.035) 1px, transparent 1px),
    linear-gradient(145deg, #f8f5ef 0%, #eef2f3 56%, #f5efe8 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

.site-header{
  width: min(calc(100% - 1.5rem), 1380px);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 12px 36px rgba(21, 32, 49, .08);
}

.brand{
  letter-spacing: .01em;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus-visible{
  background: var(--ink);
  color: white;
}

.hero{
  min-height: calc(100svh - 4.75rem);
  padding-block: clamp(4.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.hero::before{
  content: "";
  position: absolute;
  inset: clamp(4rem, 9vw, 7rem) auto auto 0;
  width: min(42vw, 34rem);
  height: 1px;
  background: linear-gradient(90deg, var(--ink), transparent);
  opacity: .32;
}

.hero-persona{
  background:
    linear-gradient(90deg, transparent 0 36%, var(--hover-ink) 47%, var(--hover-mint) 52%, transparent 66% 100%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke: .025em rgba(96,113,134,.62);
  text-shadow: 0 0 .01px rgba(96,113,134,.38);
}

h1{
  max-width: 790px;
  font-size: clamp(3.55rem, 7vw, 6.85rem);
}

h1 em{
  color: var(--accent-warm);
}

.hero-intro{
  color: #3d4854;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.hero-proof-list li,
.skill-points li{
  background: rgba(255, 253, 248, .78);
}


.hero-reveal{
  background: #f1eee7;
  box-shadow: 0 26px 70px rgba(21, 32, 49, .16);
}

.hero-reveal-front::after{
  border-radius: 8px;
  box-shadow: 0 0 0 2rem rgba(199, 101, 61, .1), 0 0 0 4rem rgba(75, 143, 121, .08);
  transform: rotate(-8deg);
}

.hero-reveal-back{
  background:
    linear-gradient(135deg, rgba(139,183,255,.3), transparent 42%),
    linear-gradient(145deg, #122032 10%, #245274 58%, #4b8f79);
}

.pathfinder,
.contact-section{
  background:
    linear-gradient(135deg, rgba(139,183,255,.14), transparent 34%),
    linear-gradient(145deg, #152031, #21364a);
}

.section-heading{
  align-items: end;
}

.ia-grid{
  gap: .75rem;
}

.ia-card,
.case-story,
.timeline-item,
.build-log{
  background: rgba(255, 253, 248, .76);
}

.ia-card,
.case-card,
.case-story,
.timeline-item,
.chaos-panel,
.role-panel,
.build-log,
.agent-section .workflow-demo-panel,
.agent-section .workflow-steps{
  border-color: rgba(21, 32, 49, .11);
  box-shadow: 0 14px 34px rgba(21, 32, 49, .09);
}

.ia-card::before{
  background: linear-gradient(90deg, var(--hover-ink), var(--hover-mint));
}

.case-card{
  background: rgba(255, 253, 248, .82);
}

.case-card::before{
  background: linear-gradient(135deg, rgba(21,32,49,.18), rgba(71,179,156,.28));
}

.case-featured{
  background:
    linear-gradient(135deg, rgba(139,183,255,.16), transparent 42%),
    #152031;
}

.case-facts div{
  background: rgba(255, 253, 248, .72);
}

.case-featured .case-facts div{
  background: rgba(255, 255, 255, .08);
}

.role-tabs button.is-active,
.role-tabs button:hover,
.role-tabs button:focus-visible,
.chaos-cloud button.is-active,
.chaos-cloud button:hover,
.chaos-cloud button:focus-visible{
  background: var(--hover-ink);
  border-color: var(--hover-ink);
  color: white;
}

.subpage-hero{
  position: relative;
}

.subpage-hero::after{
  content: "";
  display: block;
  width: min(100%, 44rem);
  height: 1px;
  margin-top: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(90deg, var(--ink), transparent);
  opacity: .24;
}

.case-story{
  border-radius: 8px;
}

.case-dialog-grid section{
  border-radius: 8px;
  background: rgba(255, 255, 255, .54);
}

.build-log-list li{
  border-radius: 8px;
}

@media (max-width: 900px) {


}

@media (max-width: 650px) {body{
    background-size: 48px 48px, 48px 48px, auto;
  }

.site-header{
    top: .5rem;
  }

h1{
    font-size: 3.15rem;
    line-height: .94;
  }


}

/* Lean homepage: short recruiter-first front page;depth lives on subpages. */
.home-lean .site-header{
  margin-bottom: 0;
}

.home-lean .hero{
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  min-height: min(760px, calc(100svh - 4.5rem));
  padding-block: 4.8rem 3.8rem;
}

.home-lean .hero::before{
  top: 5.2rem;
}

.home-lean h1{
  max-width: 780px;
  margin-bottom: 1.35rem;
  font-size: 5.8rem;
  line-height: .92;
}

.home-lean .hero-intro{
  max-width: 620px;
}

.home-lean .hero-actions{
  margin-top: 1.55rem;
}

.home-lean .hero-reveal{
  width: min(100%, 25.5rem);
}

.home-lean .section-block{
  padding-block: 4.2rem;
}

.home-lean #overblik,
.home-lean #arbejde,
.home-lean #kontakt{
  scroll-margin-top: 6rem;
}

.lean-proof{
  border-top: 1px solid var(--line);
}

.lean-proof .section-heading,
.lean-cases .section-heading{
  margin-bottom: 1.7rem;
}

.lean-proof .section-heading h2,
.lean-cases .section-heading h2,
.lean-contact h2{
  font-size: 3.45rem;
}

.lean-proof-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.lean-proof-card{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 15rem;
  padding: 1.2rem;
  border: 1px solid rgba(21, 32, 49, .11);
  border-radius: 8px;
  background: rgba(255, 253, 248, .76);
  box-shadow: 0 14px 34px rgba(21, 32, 49, .08);
  transition:
    transform .36s cubic-bezier(.2, .75, .2, 1),
    border-color .36s ease,
    background .36s ease,
    box-shadow .36s ease;
}

.lean-proof-card::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(177, 94, 67, .16), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(21, 32, 49, .12), transparent 32%);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .36s ease,
    transform .36s cubic-bezier(.2, .75, .2, 1);
}

.lean-proof-card::after{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--hover-ink), var(--hover-mint));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .36s cubic-bezier(.2, .75, .2, 1);
}

.lean-proof-card span{
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  margin-bottom: 3rem;
  color: var(--accent-warm);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 800;
  transition:
    color .36s ease,
    transform .36s cubic-bezier(.2, .75, .2, 1);
}

.lean-proof-card h3{
  max-width: 13ch;
  font-size: 2rem;
  transition: transform .36s cubic-bezier(.2, .75, .2, 1);
}

.lean-proof-card p{
  margin: 0;
  color: var(--muted);
  transition:
    color .36s ease,
    transform .36s cubic-bezier(.2, .75, .2, 1);
}

@media (hover: hover) and (pointer: fine) {.lean-proof-card:hover{
    transform: translateY(-8px);
    border-color: rgba(177, 94, 67, .34);
    background: rgba(255, 253, 248, .94);
    box-shadow: 0 24px 54px rgba(21, 32, 49, .14);
  }

.lean-proof-card:hover::before{
    opacity: 1;
    transform: translateY(0);
  }

.lean-proof-card:hover::after{
    transform: scaleY(1);
  }

.lean-proof-card:hover span{
    color: var(--accent-dark);
    transform: translateX(4px);
  }

.lean-proof-card:hover h3,
.lean-proof-card:hover p{
    transform: translateX(4px);
  }

.lean-proof-card:hover p{
    color: rgba(21, 32, 49, .74);
  }
}

.lean-case-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  background: transparent;
  border: 0;
}

.lean-case-grid .case-card,
.lean-case-grid .case-featured{
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-row: auto;
  grid-column: auto;
  min-height: 23rem;
  border: 1px solid rgba(21, 32, 49, .11);
  border-radius: 8px;
}

.lean-case-grid .case-card h3{
  font-size: 2.45rem;
}

.lean-case-grid .case-card p:not(.case-type){
  max-width: 42ch;
}

.home-lean .tag-list{
  margin-top: 1.1rem;
}

.lean-contact{
  margin-bottom: 4rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.lean-contact h2{
  max-width: 900px;
}

.lean-contact > p:not(.eyebrow){
  max-width: 680px;
  color: rgba(255, 255, 255, .74);
}

@media (max-width: 1000px) {.home-lean .hero,
.lean-proof-grid,
.lean-case-grid{
    grid-template-columns: 1fr;
  }

.home-lean h1{
    font-size: 4.3rem;
  }

.home-lean .hero{
    min-height: auto;
  }
}

@media (max-width: 650px) {.home-lean .hero{
    padding-block: 3.6rem 2.7rem;
  }

.home-lean h1{
    font-size: 3rem;
    line-height: .96;
  }

.home-lean .hero-reveal{
    display: none;
  }

.home-lean .section-block{
    padding-block: 3.2rem;
  }

.lean-proof .section-heading h2,
.lean-cases .section-heading h2,
.lean-contact h2{
    font-size: 2.35rem;
  }

.lean-proof-card{
    min-height: 0;
  }

.lean-proof-card span{
    margin-bottom: 1.5rem;
  }

.lean-case-grid .case-card,
.lean-case-grid .case-featured{
    grid-template-columns: 1fr;
    min-height: 0;
  }

.lean-case-grid .case-card h3{
    font-size: 2.15rem;
  }

.subpage-hero h1{
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 2.15rem;
    line-height: .98;
  }
}

/* Subpage CV contrast guard: primary CV buttons must stay readable outside compile mode. */
.subpage-hero .button-primary.cv-download:not(.is-compiling){
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: #fff !important;
}

/* Figma Weave case: keep the dark board treatment after later theme overrides. */
.case-story.case-story-weave{
  background:
    linear-gradient(135deg, rgba(139,183,255,.16), transparent 34%),
    linear-gradient(155deg, rgba(21, 32, 49, .95), rgba(21, 32, 49, .86));
  color: #fff;
}

.case-story.case-story-weave .case-type,
.case-story.case-story-weave .case-lead{
  color: rgba(255, 255, 255, .72);
}

.case-story.case-story-weave .case-dialog-grid section{
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.case-story.case-story-weave .case-dialog-grid span{
  color: #b9d3ff;
}

.case-story.case-story-weave .case-dialog-grid p{
  color: rgba(255, 255, 255, .74);
}

.case-story.case-story-weave .case-dialog-tags li{
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.case-weave-gallery{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
  margin: 0 0 clamp(1.7rem, 4vw, 2.7rem);
}

.case-weave-gallery figure{
  grid-column: span 2;
  min-width: 0;
  margin: 0;
}

.case-weave-gallery figure:first-child,
.case-weave-gallery figure:nth-child(5){
  grid-column: span 3;
}

.case-weave-gallery a{
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(6, 8, 13, .58);
  cursor: zoom-in;
}

.case-weave-gallery a:focus-visible{
  outline: 2px solid #b9d3ff;
  outline-offset: 4px;
}

.case-weave-gallery img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.case-weave-gallery a:hover img{
  transform: scale(1.025);
}

.case-weave-gallery figcaption{
  display: flex;
  gap: .55rem;
  margin-top: .6rem;
  color: rgba(255, 255, 255, .72);
  font-size: .85rem;
  line-height: 1.45;
}

.case-weave-gallery figcaption span{
  color: #b9d3ff;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.8;
}

@media (max-width: 650px) {.subpage-hero h1{
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 2.05rem;
    line-height: 1.02;
  }

.subpage-hero > p:not(.eyebrow),
.case-story.case-story-weave .case-lead{
    overflow-wrap: anywhere;
  }

.case-weave-gallery{
    grid-template-columns: 1fr;
  }

.case-weave-gallery figure,
.case-weave-gallery figure:first-child,
.case-weave-gallery figure:nth-child(5){
    grid-column: auto;
  }
}

.subpage-hero .button-primary.cv-download:not(.is-compiling):hover,
.subpage-hero .button-primary.cv-download:not(.is-compiling):focus-visible{
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  color: #fff !important;
}

.subpage-hero .button-primary.cv-download.is-compiling,
.subpage-hero .button-primary.cv-download.is-compiling > span{
  color: var(--ink) !important;
}

/* Light/dark theme layer. Kept late in the file so it can tame earlier design passes. */
html{
  color-scheme: light;
}

html[data-theme="dark"]{
  color-scheme: dark;
  --paper: #10141b;
  --paper-deep: #161d27;
  --surface: #141a22;
  --surface-high: #1b2330;
  --ink: #edf2f7;
  --accent: #9cc7ff;
  --accent-dark: #6fa8e8;
  --accent-warm: #ff9b73;
  --accent-green: #67c3a7;
  --muted: #a4b1bf;
  --line: rgba(237, 242, 247, .14);
  --shadow-raised: 0 22px 70px rgba(0, 0, 0, .32);
  --shadow-raised-soft: 0 16px 44px rgba(0, 0, 0, .26);
  --shadow-inset: inset 6px 6px 18px rgba(0, 0, 0, .28), inset -6px -6px 18px rgba(255, 255, 255, .03);
  --shadow-pressed: inset 5px 5px 14px rgba(0, 0, 0, .36), inset -5px -5px 14px rgba(255, 255, 255, .04);
}

html[data-theme="dark"] body{
  background:
    linear-gradient(90deg, rgba(237, 242, 247, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(237, 242, 247, .035) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(156, 199, 255, .13), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(255, 155, 115, .10), transparent 28rem),
    linear-gradient(145deg, #0f131a 0%, #151c26 55%, #111720 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: var(--ink);
}

.theme-toggle{
  position: relative;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  min-height: 2.35rem;
  margin-left: auto;
  padding: .32rem .55rem .32rem .42rem;
  color: var(--ink);
  background: rgba(255, 253, 248, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible{
  border-color: rgba(21, 32, 49, .28);
  transform: translateY(-1px);
}

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

.theme-toggle-track{
  position: relative;
  width: 2.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.theme-toggle-track::before{
  content: "";
  position: absolute;
  left: .18rem;
  top: .18rem;
  width: .84rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff7d4;
  box-shadow: 0 0 0 .14rem rgba(255, 247, 212, .28);
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
}

.theme-toggle-track::after{
  content: "";
  position: absolute;
  right: .42rem;
  top: .36rem;
  width: .18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  box-shadow: .42rem .22rem 0 rgba(255, 255, 255, .34), -.28rem .42rem 0 rgba(255, 255, 255, .28);
  opacity: 0;
  transition: opacity .24s ease;
}

html[data-theme="dark"] .theme-toggle{
  color: var(--ink);
  background: rgba(27, 35, 48, .82);
  border-color: rgba(237, 242, 247, .18);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible{
  border-color: rgba(156, 199, 255, .42);
}

html[data-theme="dark"] .theme-toggle-track{
  background: #07101b;
}

html[data-theme="dark"] .theme-toggle-track::before{
  transform: translateX(1rem);
  background: #dbeafe;
  box-shadow: -3px -1px 0 #07101b, 0 0 0 .13rem rgba(156, 199, 255, .26);
}

html[data-theme="dark"] .theme-toggle-track::after{
  opacity: 1;
}

html[data-theme="dark"] .site-header{
  background: rgba(17, 23, 32, .9);
  border-color: rgba(237, 242, 247, .14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .hero-reveal-front,
html[data-theme="dark"] .lean-proof-card,
html[data-theme="dark"] .lean-case-grid .case-card,
html[data-theme="dark"] .lean-case-grid .case-featured,
html[data-theme="dark"] .case-card,
html[data-theme="dark"] .case-featured,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .ai-card,
html[data-theme="dark"] .ai-proof-card,
html[data-theme="dark"] .case-dialog-grid section,
html[data-theme="dark"] .case-preview-strip,
html[data-theme="dark"] .subpage-hero,
html[data-theme="dark"] .section-block:not(.contact-section){
  background: rgba(27, 35, 48, .78);
  border-color: rgba(237, 242, 247, .13);
  box-shadow: var(--shadow-raised-soft);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible,
html[data-theme="dark"] .site-nav a[aria-current="page"]{
  background: var(--surface-high);
  color: var(--ink);
}

html[data-theme="dark"] .hero-intro,
html[data-theme="dark"] .section-heading > p:last-child,
html[data-theme="dark"] .lean-proof-card p,
html[data-theme="dark"] .case-card p:not(.case-type),
html[data-theme="dark"] .case-lead,
html[data-theme="dark"] .timeline-content p,
html[data-theme="dark"] .subpage-hero > p:not(.eyebrow),
html[data-theme="dark"] .ai-card p,
html[data-theme="dark"] .ai-proof-card p,
html[data-theme="dark"] .case-dialog-grid p{
  color: var(--muted);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] h1 em,
html[data-theme="dark"] .lean-proof-card span,
html[data-theme="dark"] .case-dialog-grid span,
html[data-theme="dark"] .timeline-date{
  color: var(--accent);
}

html[data-theme="dark"] .hero-persona,
html[data-theme="dark"] .hero-work-cue,
html[data-theme="dark"] .case-type,
html[data-theme="dark"] .tag-list li{
  color: var(--muted);
}

html[data-theme="dark"] .hero-persona{
  background:
    linear-gradient(90deg, transparent 0 36%, #edf2f7 47%, var(--accent-green) 52%, transparent 66% 100%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke-color: rgba(185,211,255,.58);
  text-shadow: 0 0 .01px rgba(185,211,255,.34);
}

html[data-theme="dark"] .tag-list li,
html[data-theme="dark"] .hero-proof-list li,
html[data-theme="dark"] .skill-points li{
  background: rgba(237, 242, 247, .07);
  border-color: rgba(237, 242, 247, .12);
}

html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .subpage-hero .button-primary.cv-download:not(.is-compiling){
  background: #edf2f7 !important;
  border-color: #edf2f7 !important;
  color: #10141b !important;
}

html[data-theme="dark"] .button-primary:hover,
html[data-theme="dark"] .subpage-hero .button-primary.cv-download:not(.is-compiling):hover,
html[data-theme="dark"] .subpage-hero .button-primary.cv-download:not(.is-compiling):focus-visible{
  background: var(--hover-mint) !important;
  border-color: var(--hover-mint) !important;
  color: #10141b !important;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .cv-download:not(.button-primary){
  background: #edf2f7 !important;
  border-color: #edf2f7 !important;
  color: #10141b !important;
}

html[data-theme="dark"] .case-detail-button{
  border-color: rgba(237, 242, 247, .5);
  color: var(--ink);
}

html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .cv-download:not(.button-primary):hover,
html[data-theme="dark"] .case-detail-button:hover,
html[data-theme="dark"] .case-detail-button:focus-visible{
  background: var(--hover-mint) !important;
  border-color: var(--hover-mint) !important;
  color: #10141b !important;
}

html[data-theme="dark"] .case-detail-button:hover,
html[data-theme="dark"] .case-detail-button:focus-visible{
  color: #10141b !important;
}

html[data-theme="dark"] .case-featured .case-detail-button:hover,
html[data-theme="dark"] .case-featured .case-detail-button:focus-visible,
html[data-theme="dark"] .lean-case-grid .case-featured .case-detail-button:hover,
html[data-theme="dark"] .lean-case-grid .case-featured .case-detail-button:focus-visible{
  background: #edf2f7 !important;
  border-color: #edf2f7 !important;
  color: #10141b !important;
}

html[data-theme="dark"] .case-detail-button:hover span,
html[data-theme="dark"] .case-detail-button:focus-visible span{
  color: inherit !important;
}

html[data-theme="dark"] .lean-contact,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .pathfinder{
  background: #090d13;
  border-color: rgba(237, 242, 247, .14);
}

html[data-theme="dark"] .lean-contact > p:not(.eyebrow),
html[data-theme="dark"] .contact-section p{
  color: rgba(237, 242, 247, .72);
}

html[data-theme="dark"] .hero-reveal-front::after{
  border-color: rgba(156, 199, 255, .52);
  box-shadow: 0 0 0 3rem rgba(156, 199, 255, .08), 0 0 0 6rem rgba(156, 199, 255, .04);
}

html[data-theme="dark"] .case-story.case-story-weave{
  background:
    linear-gradient(135deg, rgba(139,183,255,.16), transparent 34%),
    linear-gradient(155deg, rgba(9, 13, 19, .96), rgba(18, 24, 34, .9));
}

@media (min-width: 651px) {.theme-toggle{
    margin-left: auto;
  }
}

@media (max-width: 650px) {.site-header{
    display: flex;
    align-items: center;
    gap: .45rem;
    width: calc(100% - 1rem);
    min-height: 3.35rem;
    padding: .45rem;
    border-radius: 8px;
  }

.brand{
    flex: 1 1 auto;
    min-width: 0;
    gap: .55rem;
    font-size: clamp(.78rem, 3.7vw, .95rem);
  }

.brand-mark{
    width: 2.35rem;
    flex: 0 0 auto;
    border-radius: 8px;
  }

.brand > span:last-child{
    max-width: clamp(7.4rem, 39vw, 12rem);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

.menu-toggle,
.theme-toggle{
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    min-height: 2.55rem;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    transform: none;
    box-shadow: none;
  }

.menu-toggle{
    display: grid;
    place-items: center;
    border: 1px solid rgba(21, 32, 49, .12);
    background: rgba(255, 253, 248, .74);
    color: var(--ink);
    font-size: 0;
  }

.menu-toggle::before,
.menu-toggle::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 1.08rem;
    height: 2px;
    opacity: 1;
    background: currentColor;
    border-radius: 999px;
    box-shadow: none;
    transform: translate(-50%, calc(-50% - 4px));
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
    animation: none;
  }

.menu-toggle::after{
    transform: translate(-50%, calc(-50% + 4px));
  }

.menu-toggle:hover::before,
.menu-toggle:focus-visible::before{
    animation: none !important;
    transform: translate(-50%, calc(-50% - 4px)) !important;
  }

.menu-toggle:hover::after,
.menu-toggle:focus-visible::after{
    animation: none !important;
    transform: translate(-50%, calc(-50% + 4px)) !important;
  }

.menu-toggle[aria-expanded="true"]::before{
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

.menu-toggle[aria-expanded="true"]::after{
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

.menu-toggle[aria-expanded="true"]:hover::before,
.menu-toggle[aria-expanded="true"]:focus-visible::before{
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

.menu-toggle[aria-expanded="true"]:hover::after,
.menu-toggle[aria-expanded="true"]:focus-visible::after{
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

.theme-toggle{
    display: grid;
    place-items: center;
  }

.theme-toggle:hover,
.theme-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible{
    transform: none;
  }

.theme-toggle-track{
    width: 2rem;
    height: 1.1rem;
  }

.theme-toggle-track::before{
    width: .76rem;
  }

html[data-theme="dark"] .theme-toggle-track::before{
    transform: translateX(.9rem);
  }

.theme-toggle-label{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

.site-nav{
    left: .45rem;
    right: .45rem;
    top: calc(100% + .45rem);
    gap: .25rem;
    padding: .45rem;
    border-color: rgba(21, 32, 49, .12);
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 18px 42px rgba(21, 32, 49, .16);
    backdrop-filter: blur(18px);
  }

.site-nav a{
    min-height: 2.75rem;
    justify-content: flex-start;
    padding: .78rem .85rem;
    border-radius: 8px;
    font-size: .72rem;
  }

html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .site-nav{
    background: rgba(18, 24, 34, .96);
    border-color: rgba(237, 242, 247, .16);
  }

html[data-theme="dark"] .menu-toggle{
    color: var(--ink);
  }

html[data-theme="dark"] body{
    background-size: 48px 48px, 48px 48px, auto, auto, auto;
  }
}

@media (max-width: 380px) {.brand > span:last-child{
    max-width: 6.4rem;
  }
}

/* Dark-mode contrast audit guard. Keep this last so older visual passes cannot reintroduce pale panels with pale text. */
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .workflow-steps button:hover,
html[data-theme="dark"] .workflow-steps button:focus-visible,
html[data-theme="dark"] .workflow-steps button.is-active,
html[data-theme="dark"] .pathfinder-actions button:hover,
html[data-theme="dark"] .pathfinder-actions button:focus-visible,
html[data-theme="dark"] .pathfinder-actions button.is-active{
  background: #dbeafe;
  border-color: #dbeafe;
  color: #10141b;
}

html[data-theme="dark"] .button-light,
html[data-theme="dark"] .contact-section .button-light,
html[data-theme="dark"] .case-detail-button,
html[data-theme="dark"] .case-detail-button > span{
  background: #edf2f7 !important;
  border-color: #edf2f7 !important;
  color: #10141b !important;
}

html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .button-light:focus-visible,
html[data-theme="dark"] .contact-section .button-light:hover,
html[data-theme="dark"] .contact-section .button-light:focus-visible,
html[data-theme="dark"] .case-detail-button:hover,
html[data-theme="dark"] .case-detail-button:focus-visible,
html[data-theme="dark"] .case-detail-button:hover > span,
html[data-theme="dark"] .case-detail-button:focus-visible > span{
  background: var(--hover-mint) !important;
  border-color: var(--hover-mint) !important;
  color: #10141b !important;
}

html[data-theme="dark"] .button-primary > span,
html[data-theme="dark"] .button-secondary > span,
html[data-theme="dark"] .button-light > span,
html[data-theme="dark"] .case-detail-button > span,
html[data-theme="dark"] .copy-email-button > span{
  color: inherit !important;
}

html[data-theme="dark"] .case-story:not(.case-story-weave),
html[data-theme="dark"] .build-log,
html[data-theme="dark"] .build-log-list li,
html[data-theme="dark"] .case-facts div,
html[data-theme="dark"] .chaos-panel,
html[data-theme="dark"] .role-panel,
html[data-theme="dark"] .workflow-demo-panel,
html[data-theme="dark"] .workflow-steps,
html[data-theme="dark"] .agent-section .workflow-demo-panel,
html[data-theme="dark"] .agent-section .workflow-steps{
  background: rgba(27, 35, 48, .82);
  border-color: rgba(237, 242, 247, .14);
  color: var(--ink);
  box-shadow: var(--shadow-raised-soft);
}

html[data-theme="dark"] .hero-reveal,
html[data-theme="dark"] .hero-reveal-front{
  background: #161d27;
  border-color: rgba(237, 242, 247, .16);
  color: var(--ink);
}

html[data-theme="dark"] .hero-reveal-back{
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(156, 199, 255, .24), transparent 42%),
    linear-gradient(145deg, #08111d 10%, #18385f 58%, #1f6f62);
}

html[data-theme="dark"] .case-story:not(.case-story-weave) .case-type,
html[data-theme="dark"] .case-story:not(.case-story-weave) .case-lead,
html[data-theme="dark"] .build-log-copy p:last-child,
html[data-theme="dark"] .build-log-list p,
html[data-theme="dark"] .role-panel p,
html[data-theme="dark"] .chaos-panel p,
html[data-theme="dark"] .workflow-demo-panel p:last-child{
  color: var(--muted);
}

html[data-theme="dark"] .build-log .eyebrow,
html[data-theme="dark"] .build-log-list span,
html[data-theme="dark"] .case-story:not(.case-story-weave) .case-dialog-grid span,
html[data-theme="dark"] .chaos-transform span{
  color: var(--accent);
  border-color: var(--accent);
}

html[data-theme="dark"] .case-story:not(.case-story-weave) .tag-list li,
html[data-theme="dark"] .case-story:not(.case-story-weave) .case-dialog-tags li,
html[data-theme="dark"] .concept-list li,
html[data-theme="dark"] .role-grid li{
  background: rgba(237, 242, 247, .09);
  border-color: rgba(237, 242, 247, .16);
  color: var(--ink);
}

html[data-theme="dark"] .chaos-cloud button,
html[data-theme="dark"] .role-tabs button{
  background: rgba(237, 242, 247, .08);
  border-color: rgba(237, 242, 247, .15);
  color: var(--ink);
}

html[data-theme="dark"] .chaos-cloud button:hover,
html[data-theme="dark"] .chaos-cloud button:focus-visible,
html[data-theme="dark"] .chaos-cloud button.is-active,
html[data-theme="dark"] .role-tabs button:hover,
html[data-theme="dark"] .role-tabs button:focus-visible,
html[data-theme="dark"] .role-tabs button.is-active{
  background: #dbeafe;
  border-color: #dbeafe;
  color: #10141b;
}

.theme-toggle{
  overflow: hidden;
}

.theme-toggle-track{
  overflow: hidden;
}

.theme-toggle-track::before{
  top: 50%;
  height: .84rem;
  transform: translateY(-50%);
  box-shadow: none;
}

.theme-toggle-track::after{
  display: none;
}

html[data-theme="dark"] .theme-toggle-track::before{
  transform: translate(1rem, -50%);
  background: #dbeafe;
  box-shadow: inset -.22rem -.04rem 0 rgba(7, 16, 27, .42);
}

@media (max-width: 650px){
  .theme-toggle-track::before{
    width: .76rem;
    height: .76rem;
  }

  html[data-theme="dark"] .theme-toggle-track::before{
    transform: translate(.9rem, -50%);
  }
}
