/* ==========================================================================
   Norvin Crujido portfolio: public site
   Visual language: a circuit board seen up close. Solder-mask green, copper
   traces, silkscreen type. The portrait is the chip at the centre; everything
   he builds connects to it.
   ========================================================================== */

:root {
  --board: #143a2d;
  --board-2: #1b4a3a;
  --board-deep: #0c271e;
  --copper: #9a5a26;
  --copper-hi: #e3a468;
  --copper-glow: #f2c08a;
  --silk: #f3f5f1;
  --ink: #142019;
  --paper: #f6f7f3;
  --tint: #e9eee8;
  --muted: #4b5852;
  --line: #d2dbd4;
  --led: #3ccf8a;
  --error: #b3261e;
  --ok: #1d6b47;

  --display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7rem);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--copper-hi); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; font-stretch: semi-condensed; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: var(--tint); padding: .05em .3em; border-radius: var(--r); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--silk); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.note { color: var(--muted); font-size: .98rem !important; }

/* Board texture: faint copper traces used on dark bands. */
.hero, .pagehead, .caps, .footer {
  background-color: var(--board);
  background-image: url("../img/traces.svg");
  background-size: 720px auto;
  background-repeat: repeat;
}

/* ---------- Masthead ---------- */
.masthead { background: var(--board-deep); color: var(--silk); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(227,164,104,.18); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--display); font-stretch: semi-condensed; font-weight: 700; font-size: 1.2rem; color: var(--silk); text-decoration: none; }
.wordmark__chip { width: 1.05rem; height: 1.05rem; border: 2px solid var(--copper-hi); position: relative; }
.wordmark__chip::after { content: ""; position: absolute; inset: 3px; background: var(--copper-hi); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; }
.site-nav a { display: block; color: rgba(243,245,241,.85); text-decoration: none; font-size: .98rem; padding: .45rem .85rem; border-radius: 999px; transition: background-color .15s, color .15s; }
.site-nav a:hover { color: var(--silk); background: rgba(243,245,241,.08); }
.site-nav a[aria-current="page"] { color: var(--board-deep); background: var(--copper-hi); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(243,245,241,.4); color: var(--silk); font: inherit; padding: .35rem .8rem; border-radius: var(--r); cursor: pointer; }
@media (max-width: 44rem) {
  .js .nav-toggle { display: inline-block; }
  .masthead__inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--board-deep); padding: .5rem var(--gutter) 1rem; width: auto; border-bottom: 1px solid rgba(227,164,104,.25); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav a { padding: .7rem 1rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.4rem; font: 600 1rem/1 var(--body); text-decoration: none; border-radius: var(--r); border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 2.5rem; padding: .5rem 1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--copper { background: var(--copper-hi); color: var(--board-deep); }
.btn--copper:hover { background: var(--copper-glow); }
.btn--ghost { border-color: rgba(243,245,241,.5); color: var(--silk); }
.btn--ghost:hover { border-color: var(--silk); background: rgba(243,245,241,.08); }
.btn--solid { background: var(--board); color: var(--silk); }
.btn--solid:hover { background: var(--board-deep); }
.btn--line { border-color: var(--board); color: var(--board); }
.btn--line:hover { background: var(--board); color: var(--silk); }
.btn--dark { background: var(--board-deep); color: var(--silk); }
.btn--dark:hover { background: #000; }
.btn--darkline { border-color: var(--board-deep); color: var(--board-deep); }
.btn--darkline:hover { background: rgba(12,39,30,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { color: var(--silk); padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.hero__hello { font-size: 1.15rem; color: rgba(243,245,241,.75); margin: 0 0 .5rem; }
.hero__name { font-size: clamp(3.4rem, 9.5vw, 7.6rem); line-height: .9; font-weight: 700; font-stretch: condensed; letter-spacing: -.02em; }
.hero__name-line { display: block; }
.hero__name-line--second { margin-left: .28em; }
.hero__name-float { display: inline-block; }
.hero__title { font-family: var(--display); font-stretch: semi-condensed; font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--copper-hi); margin: 1.1rem 0 1.25rem; }
.hero__intro { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 32em; color: rgba(243,245,241,.88); }
.hero__experience { max-width: 34em; font-size: .98rem; color: rgba(243,245,241,.75); }
.hero__focus { margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.25rem 0 0; }
@keyframes hero-name-enter-left {
  from { opacity: 0; transform: translate3d(-.16em, .12em, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hero-name-enter-right {
  from { opacity: 0; transform: translate3d(.16em, .12em, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hero-name-float-first {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(.012em, -.03em, 0); }
}
@keyframes hero-name-float-second {
  0%, 100% { transform: translate3d(0, 0, 0); }
  34% { transform: translate3d(-.012em, -.025em, 0); }
  48% { transform: translate3d(-.03em, -.035em, 0); }
  62% { transform: translate3d(.012em, -.025em, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__name-line--first { animation: hero-name-enter-left .72s var(--ease) both; }
  .hero__name-line--second { animation: hero-name-enter-right .72s var(--ease) .16s both; }
  .hero__name-float--first { animation: hero-name-float-first 7.4s ease-in-out 1s infinite; }
  .hero__name-float--second { animation: hero-name-float-second 8.6s ease-in-out 1.16s infinite; }
}

/* The portrait as a chip: a package with copper pins on every side. */
.chip { --pin: 7px; --gap: 11px; --len: 18px; position: relative; justify-self: center; width: min(100%, 25rem); aspect-ratio: 1; padding: var(--len); }
.chip__die { position: relative; height: 100%; background: #0b1f18; padding: 12px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(227,164,104,.35), 0 30px 60px -20px rgba(0,0,0,.55); }
.chip__die::before { content: ""; position: absolute; top: 20px; left: 20px; width: 12px; height: 12px; border-radius: 50%; background: rgba(243,245,241,.85); z-index: 1; box-shadow: 0 0 0 3px #0b1f18; }
.chip__die img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.chip__pins { position: absolute; }
.chip__pins--top, .chip__pins--bottom { left: calc(var(--len) + 22px); right: calc(var(--len) + 22px); height: var(--len);
  background: repeating-linear-gradient(90deg, var(--copper-hi) 0 var(--pin), transparent var(--pin) calc(var(--pin) + var(--gap))); }
.chip__pins--top { top: 0; } .chip__pins--bottom { bottom: 0; }
.chip__pins--left, .chip__pins--right { top: calc(var(--len) + 22px); bottom: calc(var(--len) + 22px); width: var(--len);
  background: repeating-linear-gradient(180deg, var(--copper-hi) 0 var(--pin), transparent var(--pin) calc(var(--pin) + var(--gap))); }
.chip__pins--left { left: 0; } .chip__pins--right { right: 0; }
.chip--small { width: min(100%, 17rem); --len: 13px; --pin: 5px; --gap: 9px; }
@media (max-width: 52rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__name { font-size: clamp(2rem, 14vw, 3.4rem); }
  .hero__name-line { display: inline-block; }
  .hero__name-line--second { margin-left: 0; }
  .hero .chip { order: -1; justify-self: center; width: min(70vw, 17rem); --len: 13px; --pin: 5px; --gap: 9px; }
}

/* ---------- Capabilities: copper bus with a drop to each node ---------- */
.caps { color: var(--silk); padding: 0 0 clamp(4rem, 8vw, 6rem); background-color: var(--board); border-top: 1px solid rgba(243,245,241,.08); }
.caps__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; align-items: end; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.caps__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-stretch: condensed; font-weight: 700; }
.caps__lede { margin: 0; color: rgba(243,245,241,.78); max-width: 34em; font-size: 1.1rem; }
.bus { position: relative; padding-top: 2.25rem; }
.bus::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--copper-hi); transform-origin: left; border-radius: 2px; }
.bus::after { content: ""; position: absolute; left: -2px; top: -6px; width: 15px; height: 15px; background: var(--board); border: 3px solid var(--copper-hi); border-radius: 50%; }
.caps__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
.cap { position: relative; background: rgba(9,30,23,.55); border: 1px solid rgba(243,245,241,.12); border-radius: 6px; padding: 1.5rem 1.4rem 1.35rem; transition: border-color .2s, background-color .2s, transform .2s var(--ease); display: flex; flex-direction: column; }
.cap::before { content: ""; position: absolute; left: 2.15rem; top: -2.25rem; width: 3px; height: 2.25rem; background: var(--copper-hi); }
.caps__grid .cap:nth-child(n+4)::before { display: none; }
.cap:hover { border-color: var(--copper-hi); background: rgba(9,30,23,.8); transform: translateY(-3px); }
.cap__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 6px; background: var(--copper-hi); color: var(--board-deep); margin-bottom: 1rem; }
.cap__icon .icon { width: 1.6rem; height: 1.6rem; }
.cap__title { font-size: 1.45rem; margin-bottom: .5rem; }
.cap__text { color: rgba(243,245,241,.8); font-size: 1rem; margin-bottom: 1rem; }
.cap__link { margin-top: auto; color: var(--copper-hi); font-weight: 600; font-size: .95rem; }
.cap__link::after { content: ""; position: absolute; inset: 0; }
.cap__link:focus-visible { outline: none; }
.cap:has(.cap__link:focus-visible) { outline: 3px solid var(--copper-hi); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] .bus::before, .js .bus[data-reveal]::before { transform: scaleX(0); }
  .js .bus[data-reveal] .cap { opacity: 0; transform: translateY(14px); }
  .js .bus[data-reveal] .cap::before { transform: scaleY(0); transform-origin: top; }
  .js .bus.is-in::before { transform: scaleX(1); transition: transform 1s var(--ease); }
  .js .bus.is-in .cap { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s, background-color .2s; }
  .js .bus.is-in .cap::before { transform: scaleY(1); transition: transform .35s var(--ease); }
  .js .bus.is-in .cap:nth-child(1), .js .bus.is-in .cap:nth-child(1)::before { transition-delay: .35s; }
  .js .bus.is-in .cap:nth-child(2), .js .bus.is-in .cap:nth-child(2)::before { transition-delay: .55s; }
  .js .bus.is-in .cap:nth-child(3), .js .bus.is-in .cap:nth-child(3)::before { transition-delay: .75s; }
  .js .bus.is-in .cap:nth-child(4) { transition-delay: .85s; }
  .js .bus.is-in .cap:nth-child(5) { transition-delay: .95s; }
  .js .bus.is-in .cap:nth-child(6) { transition-delay: 1.05s; }
  .js .bus.is-in .cap:hover { transition-delay: 0s; transform: translateY(-3px); }
}
@media (max-width: 60rem) {
  .caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps__grid .cap:nth-child(3)::before { display: none; }
}
@media (max-width: 40rem) {
  .caps__head { grid-template-columns: 1fr; }
  .bus { padding-top: 0; padding-left: 1.75rem; }
  .bus::before { right: auto; bottom: 0; width: 3px; height: auto; transform-origin: top; }
  .bus::after { left: -6px; top: -4px; }
  .caps__grid { grid-template-columns: 1fr; gap: 1rem; }
  .cap::before, .caps__grid .cap:nth-child(n)::before { display: block; left: -1.75rem; top: 1.9rem; width: 1.75rem; height: 3px; transform-origin: left; }
  .js .bus[data-reveal]::before { transform: scaleY(0); }
  .js .bus.is-in::before { transform: scaleY(1); }
  .js .bus[data-reveal] .cap::before { transform: scaleX(0); transform-origin: left; }
  .js .bus.is-in .cap::before { transform: scaleX(1); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0 var(--space); }
.section--tint { background: var(--tint); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 2rem; align-items: end; margin-bottom: 2.75rem; }
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }
.section__title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-stretch: condensed; font-weight: 700; }
.section__lede { color: var(--muted); margin: .5rem 0 0; max-width: 34em; font-size: 1.08rem; }
@media (max-width: 48rem) { .section__head { grid-template-columns: 1fr; } }

/* ---------- LED status ---------- */
.led { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .92rem; font-weight: 600; }
.led::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; flex: none; border: 2px solid currentColor; }
.led--completed::before { background: var(--led); border-color: #22a96a; box-shadow: 0 0 0 3px rgba(60,207,138,.22), 0 0 10px rgba(60,207,138,.55); }
.led--in_progress::before { border-color: var(--copper-hi); background: linear-gradient(90deg, var(--copper-hi) 50%, transparent 50%); }
.led--concept::before { border-color: currentColor; border-style: dashed; }
.led--chip { position: absolute; left: .85rem; top: .85rem; background: rgba(9,26,20,.82); color: var(--silk); padding: .35rem .7rem .35rem .6rem; border-radius: 999px; font-size: .82rem; backdrop-filter: blur(2px); }

/* ---------- Project cards ---------- */
.cards { display: grid; gap: 1.75rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 64rem) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 42rem) { .cards--3, .cards--2 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(20,58,45,.45); border-color: #b9c8bd; }
.card[hidden] { display: none; }
.card__cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--board); }
.card__cover img, .card__cover .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__cover img, .card:hover .card__cover .cover { transform: scale(1.04); }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__category { margin: 0 0 .35rem; color: var(--copper); font-weight: 600; font-size: .9rem; }
.card__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-stretch: condensed; font-weight: 700; margin-bottom: .6rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--copper-hi); outline-offset: 3px; }
.card__summary { color: #34423b; margin-bottom: 1.1rem; }
.card .parts { margin-top: auto; }

/* Cover colours per kind of work */
.cover__bg { fill: #1b4a3a; }
.card--iot .cover__bg, .pagehead__art.card--iot { fill: #17503f; background: #17503f; }
.card--web .cover__bg, .pagehead__art.card--web { fill: #233654; background: #233654; }
.card--api .cover__bg, .pagehead__art.card--api { fill: #2a2f4a; background: #2a2f4a; }
.card--mobile .cover__bg, .pagehead__art.card--mobile { fill: #1b4a58; background: #1b4a58; }
.card--game .cover__bg, .pagehead__art.card--game { fill: #3e2a56; background: #3e2a56; }
.card--plugin .cover__bg, .pagehead__art.card--plugin { fill: #2b3c4c; background: #2b3c4c; }
.card--research .cover__bg, .pagehead__art.card--research { fill: #4a3b20; background: #4a3b20; }

/* Technology "part labels" */
.parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.parts li { font-size: .84rem; line-height: 1; padding: .45rem .6rem; background: var(--tint); border-radius: 3px; color: #24322c; border-left: 3px solid var(--copper-hi); }
.parts__more { border-left-color: var(--line) !important; color: var(--muted) !important; }
.parts--stacked { flex-direction: column; align-items: flex-start; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 2rem; }
.filters__label { margin: 0; font-weight: 600; }
.filters__group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chipbtn { font: 600 .92rem/1 var(--body); padding: .6rem .95rem; border-radius: 999px; border: 1px solid #a9b8b0; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.chipbtn span { color: var(--muted); font-weight: 400; margin-left: .2rem; }
.chipbtn:hover { border-color: var(--board); }
.chipbtn[aria-pressed="true"] { background: var(--board); border-color: var(--board); color: var(--silk); }
.chipbtn[aria-pressed="true"] span { color: rgba(243,245,241,.75); }
.chipbtn--cat { font-weight: 500; }

/* Workbench strip */
.building { background: var(--tint); padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.building__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.building__title { font-size: 1.3rem; }
.building__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.building__list a { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.building__list a:hover { color: var(--copper); }
.building .led--in_progress::before { border-color: var(--copper); background: linear-gradient(90deg, var(--copper) 50%, transparent 50%); }

/* Call to action band: copper */
.cta { background: var(--copper-hi); color: var(--board-deep); padding: clamp(3rem, 6vw, 4.5rem) 0; background-image: linear-gradient(120deg, rgba(255,255,255,.18), transparent 60%); }
.cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; }
.cta__title { font-size: clamp(2rem, 4vw, 3rem); font-stretch: condensed; font-weight: 700; max-width: 18em; }
.cta__text { margin: .6rem 0 0; font-size: 1.1rem; max-width: 34em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.cta a:not(.btn) { color: var(--board-deep); }

/* ---------- Page headers ---------- */
.pagehead { color: var(--silk); padding: clamp(2.75rem, 6vw, 4.75rem) 0 clamp(2.75rem, 6vw, 4.25rem); }
.pagehead__split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pagehead__split--about { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.pagehead__title { font-size: clamp(2.8rem, 7vw, 5.2rem); font-stretch: condensed; font-weight: 700; line-height: .95; letter-spacing: -.015em; }
.pagehead__lede { max-width: 36em; margin: 1.1rem 0 0; font-size: 1.15rem; color: rgba(243,245,241,.88); }
.pagehead__meta { margin: 1rem 0 0; color: var(--copper-hi); font-weight: 600; }
.pagehead a { color: var(--copper-hi); }
.pagehead__art { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px rgba(227,164,104,.3), 0 30px 60px -25px rgba(0,0,0,.6); }
.pagehead__art img, .pagehead__art .cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.crumbs { font-size: .92rem; margin-bottom: 1.25rem; color: rgba(243,245,241,.7); }
.crumbs a { color: rgba(243,245,241,.85) !important; }
.pagehead .led { color: var(--silk); }
.specs { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(243,245,241,.18); }
.specs dt { font-size: .85rem; color: rgba(243,245,241,.65); margin-bottom: .25rem; }
.specs dd { margin: 0; font-weight: 600; }
.tally { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2rem 0 0; }
.tally div { display: flex; flex-direction: column-reverse; }
.tally dt { color: rgba(243,245,241,.7); font-size: .92rem; }
.tally dd { margin: 0; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--copper-hi); }
@media (max-width: 52rem) {
  .pagehead__split, .pagehead__split--about { grid-template-columns: 1fr; }
  .pagehead__split--about .chip { order: -1; justify-self: center; width: min(55vw, 13rem); }
}

/* ---------- Detail layout ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .detail { grid-template-columns: 1fr; } }
.prose { max-width: 42rem; }
.prose p, .prose li { font-size: 1.08rem; }
.prose--lead > p:first-child { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink); }
.prose__h { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose > .prose__h:first-child { margin-top: 0; }
.prose--legal { max-width: 46rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.stack { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--copper-hi); border-radius: 6px; padding: 1.5rem; position: sticky; top: 5.5rem; }
.stack__title { font-size: 1.3rem; margin-bottom: 1rem; }
.stack__ask { margin: 1.5rem 0 0; }
@media (max-width: 52rem) { .stack { position: static; } }
.approach { background: var(--board); color: var(--silk); border-radius: 8px; padding: 1.75rem; position: sticky; top: 5.5rem; }
.approach__title { font-size: 1.5rem; color: var(--copper-hi); margin-bottom: 1rem; }
.approach p { color: rgba(243,245,241,.9); }
.approach p:last-child { margin: 0; }
@media (max-width: 52rem) { .approach { position: static; } }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .75rem; height: .75rem; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(60,207,138,.2); }
.checklist--concept li::before { background: transparent; border: 2px dashed var(--muted); box-shadow: none; }
.checklist--in_progress li::before { background: linear-gradient(90deg, var(--copper-hi) 50%, transparent 50%); border: 2px solid var(--copper-hi); box-shadow: none; }

.gallery { background: var(--board-deep); padding: 2.5rem 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.gallery__item { margin: 0; }
.gallery__item--lead { grid-column: 1 / -1; }
.gallery__item img { width: 100%; border-radius: 6px; border: 1px solid rgba(243,245,241,.15); }
.gallery__item figcaption { color: rgba(243,245,241,.75); font-size: .9rem; margin-top: .5rem; }
@media (max-width: 40rem) { .gallery__grid { grid-template-columns: 1fr; } }

.pager { background: var(--tint); color: var(--ink); border-top: 1px solid var(--line); }
.pager__inner { display: flex; justify-content: space-between; align-items: stretch; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pager a { color: var(--ink); text-decoration: none; }
.pager__back { align-self: center; font-weight: 600; }
.pager__back:hover, .pager__next:hover .pager__title { color: var(--copper); }
.pager__next { text-align: right; display: flex; flex-direction: column; }
.pager__label { font-size: .88rem; color: var(--muted); }
.pager__title { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---------- Skills page ---------- */
.skillboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.skillcard { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; }
.skillcard__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.skillcard__head .cap__icon { margin: 0; width: 2.6rem; height: 2.6rem; flex: none; }
.skillcard__head .cap__icon .icon { width: 1.35rem; height: 1.35rem; }
.skillcard__name { font-size: 1.4rem; }
.skillcard__list { list-style: none; margin: 0; padding: 0; }
.skillcard__list li { padding: .6rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .1rem; }
.skillcard__skill { font-weight: 600; }
.skillcard__used { font-size: .88rem; color: var(--muted); }
@media (max-width: 60rem) { .skillboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 42rem) { .skillboard { grid-template-columns: 1fr; } }

/* ---------- Timeline (a real sequence) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; counter-reset: step; max-width: 46rem; }
.timeline::before { content: ""; position: absolute; left: .62rem; top: .5rem; bottom: .5rem; width: 3px; background: var(--copper-hi); border-radius: 2px; }
.timeline__item { position: relative; padding-bottom: 2.25rem; counter-increment: step; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: counter(step); position: absolute; left: -2.25rem; top: 0; width: 1.5rem; height: 1.5rem; background: var(--board); color: var(--copper-hi); border-radius: 50%; font: 700 .75rem/1 var(--body); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--tint); }
.timeline__item .timeline__period { margin: 0 0 .25rem; font-weight: 600; color: var(--copper); font-size: .95rem; }
.timeline__title { font-size: 1.45rem; margin-bottom: .4rem; }
.timeline__item p { color: #2c3833; }
.timeline--experience { max-width: 52rem; }
.timeline__organization { font-weight: 600; margin-bottom: .6rem; }
.timeline__responsibilities { margin: 0; padding-left: 1.2rem; }
.timeline__responsibilities li { margin-bottom: .35rem; }
.timeline__responsibilities li:last-child { margin-bottom: 0; }
.education { max-width: 52rem; border-left: 3px solid var(--copper-hi); padding-left: 1.25rem; }
.education__degree { font-size: 1.35rem; margin-bottom: .45rem; }
.education__school { font-weight: 600; margin-bottom: .2rem; }
.education__period { color: var(--muted); margin: 0; }
#experience { scroll-margin-top: 5rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--copper-hi); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); }
.contact__h { font-size: 1.35rem; margin-bottom: 1rem; }
.contact__links { display: flex; gap: 1.25rem; font-weight: 600; }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } .contact__form { order: -1; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 36rem) { .form__row--split { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .98rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #9fb0a6; border-radius: var(--r); padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--board); box-shadow: 0 0 0 3px rgba(20,58,45,.2); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { color: var(--error); font-size: .92rem; margin: .4rem 0 0; font-weight: 600; }
.form__privacy { font-size: .9rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-left: 4px solid; padding: 1rem 1.25rem; background: var(--paper); border-radius: 0 var(--r) var(--r) 0; }
.notice:focus { outline: none; }
.notice p:last-child { margin: 0; }
.notice--ok { border-color: var(--ok); }
.notice--error { border-color: var(--error); color: #5c140f; }
.notice__title { font-family: var(--display); font-stretch: semi-condensed; font-weight: 700; font-size: 1.6rem; margin-bottom: .4rem; color: var(--ok); }
.availability { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--board); }

/* ---------- Footer ---------- */
.footer { color: rgba(243,245,241,.85); padding: 3.5rem 0 2.5rem; background-color: var(--board-deep); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.footer__name { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 2rem; color: var(--silk); margin: 0; }
.footer__title { margin: .2rem 0 1.25rem; }
.footer__head { font-weight: 700; color: var(--copper-hi); margin-bottom: .75rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a:not(.btn) { color: var(--silk); text-decoration: none; }
.footer a:not(.btn):hover { color: var(--copper-hi); text-decoration: underline; }
.footer__note { grid-column: 1 / -1; font-size: .88rem; color: rgba(243,245,241,.6); margin: 1rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(243,245,241,.12); }
@media (max-width: 44rem) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__id { grid-column: 1 / -1; } }

@media print {
  .masthead, .footer, .hero__actions, .cta, .form, .filters { display: none; }
  .hero, .pagehead, .caps { background: none; color: #000; }
}
.card__live { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.card__live a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.card__live .led::before { width: .55rem; height: .55rem; }
.pagehead--project .hero__actions { margin: 1.75rem 0 0; }
.pagehead a.btn--copper { color: var(--board-deep); }
.pagehead a.btn--ghost { color: var(--silk); }
.field--challenge { background: var(--tint); border-left: 3px solid var(--copper-hi); padding: .9rem 1rem; border-radius: 0 var(--r) var(--r) 0; }
.field--challenge label { font-weight: 600; }
.input--short { max-width: 14rem; }

.contributions { background: var(--tint); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.contributions__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.contributions__grid li { border-left: 3px solid var(--copper-hi); padding-left: 1rem; }
.contributions__grid h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.contributions__grid p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 60rem) { .contributions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .contributions__grid { grid-template-columns: 1fr; gap: 1.25rem; } }

.card__contribution { margin: 0 0 1rem; border-left: 2px solid var(--copper-hi); padding-left: .75rem; }
.card__contribution-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 .2rem; }
.card__contribution p:last-child { font-size: .94rem; line-height: 1.45; color: var(--ink); margin: 0; }
