/* Layout: one 1120px column; a shipping-label hero card, then a project index of browser mockups, skills table, timeline, contact band */
:root {
  --bg: #f2f4f1;
  --surface: #ffffff;
  --ink: #12201c;
  --muted: #56655f;
  --line: #d5dcd7;
  --accent: #0b6b55;      /* deep emerald */
  --accent-ink: #ffffff;
  --tape: #e9a823;        /* parcel-tape amber */
  --tape-ink: #2a1d00;
  --label: #fffdf6;
  --band-accent: #e9a823; /* amber text on the inverted contact band */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1513; --surface: #15201d; --ink: #e7eeea; --muted: #9aaaa3; --line: #26332f;
    --accent: #3fc79f; --accent-ink: #062018; --tape: #f0b53c; --tape-ink: #2a1d00; --label: #1a2622; --band-accent: #7a4f00;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1513; --surface: #15201d; --ink: #e7eeea; --muted: #9aaaa3; --line: #26332f;
  --accent: #3fc79f; --accent-ink: #062018; --tape: #f0b53c; --tape-ink: #2a1d00; --label: #1a2622; --band-accent: #7a4f00;
  color-scheme: dark;
}

* { box-sizing: border-box; }
:root { color-scheme: light; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.eyebrow {
  font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font: 800 18px/1 var(--font-display); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav ul li:not(:last-child) { display: none; } }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 0.98; font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: 19px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; background: transparent; color: var(--ink);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { transform: translateY(-1px); }

/* shipping label */
.label {
  position: relative; background: var(--label); border: 2px solid var(--ink); border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px; transform: rotate(1.6deg);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}
.label::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--tape) 85%, transparent);
}
.label .row { padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.label .row:last-child { border-bottom: 0; }
.label .split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.label .split > div { padding: 12px 16px; }
.label .split > div + div { border-left: 2px solid var(--ink); }
.label small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.label strong { font-weight: 600; font-size: 14px; }
.label .big { font: 800 30px/1 var(--font-display); letter-spacing: -0.02em; }
.barcode { height: 54px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); }
.cn { margin-top: 6px; letter-spacing: 0.3em; font-size: 12px; text-align: center; }
.contents { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contents li::before { content: "[x] "; color: var(--accent); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-block: 48px; }
  .label { transform: rotate(0.8deg); max-width: 440px; }
}

/* sections */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 36px; }
.head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-top: 10px; }
.head p { color: var(--muted); max-width: 30em; }

/* projects */
.projects { display: grid; gap: 28px; }
.proj {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.proj .info { min-width: 0; }
.proj h3 { font-size: 28px; font-weight: 700; margin-top: 10px; }
.proj .type { color: var(--muted); font-size: 15px; margin-top: 4px; }
.proj ul.pts { margin: 16px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.proj ul.pts li::marker { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status { font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; }
.status.live { background: var(--accent); color: var(--accent-ink); }
.status.project { background: var(--ink); color: var(--bg); }
.status.ready { background: var(--tape); color: var(--tape-ink); }
.code { font: 400 12px/1 var(--font-mono); color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.stack span { font: 400 12px/1 var(--font-mono); padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }
.proj .links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; font-size: 15px; }
.proj .links a { color: var(--accent); text-underline-offset: 4px; }
.proj .links .note { color: var(--muted); font-weight: 400; }
.proj:nth-child(even) .shot { order: -1; }
@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .proj:nth-child(even) .shot { order: 0; }
}

/* browser mockups (drawn in CSS, each in its project's own colours) */
.shot { min-width: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); }
.chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e6e8e7; }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c3c8c6; }
.chrome b { flex: 1; margin-left: 10px; height: 16px; border-radius: 4px; background: #f7f8f8; font: 400 10px/16px var(--font-mono); color: #6b7471; padding-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.screen { aspect-ratio: 16 / 10; max-width: 100%; position: relative; overflow: hidden; }
.screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.m-outvik { background: #fff; display: grid; grid-template-rows: 58% 1fr; }
.m-outvik .hero-ph { background: linear-gradient(110deg, #0d0d0d 45%, #2b2b2b 70%, #111 100%); color: #fff; display: flex; flex-direction: column; justify-content: end; padding: 6% 7%; gap: 6px; position: relative; }
.m-outvik .hero-ph::after { content: ""; position: absolute; right: 9%; bottom: 0; width: 30%; height: 88%; background: radial-gradient(ellipse at 50% 30%, #4a4a4a, #1a1a1a 70%); border-radius: 40% 40% 0 0; }
.m-outvik .t { font: 700 clamp(14px, 2.6vw, 22px)/1 "Montserrat", var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; position: relative; z-index: 1; }
.m-outvik .s { font: 500 9px/1 var(--font-mono); letter-spacing: 0.2em; color: #aaa; position: relative; z-index: 1; }
.m-outvik .btn-ph { width: 70px; height: 16px; border: 1px solid #fff; position: relative; z-index: 1; margin-top: 4px; }
.m-outvik .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
.m-outvik .grid div { background: linear-gradient(160deg, #e9e9e9, #bdbdbd); }
.m-outvik .grid div:nth-child(2) { background: linear-gradient(160deg, #5a5a5a, #1c1c1c); }
.m-outvik .grid div:nth-child(4) { background: linear-gradient(160deg, #8a6a50, #3a2a1e); }

.m-store { background: #fafbfd; padding: 0; display: grid; grid-template-rows: auto 1fr; }
.m-store .top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #1d3f8a; color: #fff; font: 700 13px/1 var(--font-display); }
.m-store .top span { display: flex; gap: 8px; }
.m-store .top span i { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); }
.m-store .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; }
.m-store .card { background: #fff; border: 1px solid #e3e7ef; border-radius: 6px; padding: 6px; display: grid; gap: 5px; }
.m-store .card .img { aspect-ratio: 4/3; border-radius: 4px; background: linear-gradient(135deg, #dfe6f5, #b9c7e6); }
.m-store .card .ln { height: 5px; border-radius: 3px; background: #cfd6e4; width: 80%; }
.m-store .card .pr { height: 6px; border-radius: 3px; background: #1d3f8a; width: 40%; }

.m-desk { background: #f4f6f8; display: grid; grid-template-columns: 22% 1fr; }
.m-desk .side { background: #172026; padding: 12px 10px; display: grid; align-content: start; gap: 8px; }
.m-desk .side i { height: 6px; border-radius: 3px; background: #3a4a55; }
.m-desk .side i:first-child { background: #3fc79f; width: 70%; margin-bottom: 6px; }
.m-desk .main { padding: 12px; display: grid; align-content: start; gap: 8px; min-width: 0; }
.m-desk .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-desk .kpis div { background: #fff; border: 1px solid #e1e6ea; border-radius: 5px; padding: 6px; font: 700 13px/1 var(--font-display); color: #172026; }
.m-desk .kpis small { display: block; font: 400 8px/1 var(--font-mono); color: #7a8790; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.m-desk .tr { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 6px; align-items: center; background: #fff; border: 1px solid #e1e6ea; border-radius: 4px; padding: 5px 7px; font: 400 8.5px/1 var(--font-mono); color: #3d4a52; }
.m-desk .pill { justify-self: start; padding: 3px 5px; border-radius: 3px; font-weight: 600; }
.p-red { background: #fde3e1; color: #a5281d; } .p-amb { background: #fdf0d3; color: #7a5300; } .p-grn { background: #daf3e9; color: #0b6b55; }

.m-garm { background: #fff8f1; display: grid; grid-template-rows: auto auto 1fr; }
.m-garm .top { padding: 9px 14px; background: #d9581b; color: #fff; font: 800 13px/1 var(--font-display); display: flex; justify-content: space-between; }
.m-garm .top em { font: 400 9px/13px var(--font-mono); font-style: normal; opacity: .85; }
.m-garm .band { margin: 10px 12px 0; padding: 10px 12px; border-radius: 6px; background: linear-gradient(100deg, #ffd9b8, #ffb37c); font: 700 12px/1.2 var(--font-display); color: #5a2306; }
.m-garm .cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px; }
.m-garm .card { background: #fff; border-radius: 6px; border: 1px solid #f1dccb; display: grid; place-items: center; aspect-ratio: 3/4; font-size: 0; }
.m-garm .card svg { width: 55%; height: auto; }

.m-wp { background: #ffffff; display: grid; grid-template-rows: auto 1fr auto; }
.m-wp .top { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #ececec; }
.m-wp .top i { width: 50px; height: 8px; background: #222; border-radius: 2px; }
.m-wp .top span { display: flex; gap: 8px; } .m-wp .top span i { width: 22px; background: #c9c9c9; height: 5px; }
.m-wp .body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 16px 16px 0; align-items: center; }
.m-wp .txt { display: grid; gap: 7px; }
.m-wp .txt i { height: 9px; border-radius: 2px; background: #222; }
.m-wp .txt i:nth-child(2) { width: 75%; }
.m-wp .txt i:nth-child(3), .m-wp .txt i:nth-child(4) { height: 5px; background: #cfcfcf; }
.m-wp .txt b { width: 60px; height: 16px; border-radius: 3px; background: #2271b1; margin-top: 4px; }
.m-wp .pic { aspect-ratio: 4/3; border-radius: 6px; background: linear-gradient(135deg, #cfe3f3, #7fb2dc); }
.m-wp .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px; }
.m-wp .row3 i { height: 34px; border-radius: 4px; background: #f1f3f5; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.skill { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; margin: 0 -1px -1px 0; }
.skill h3 { font-size: 19px; font-weight: 700; }
.skill p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* timeline */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .split2 { grid-template-columns: 1fr; gap: 40px; } }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; border-left: 2px solid var(--line); }
.tl li { position: relative; padding-left: 22px; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl .when { font: 600 12px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.tl h3 { font-size: 20px; margin-top: 6px; font-weight: 700; }
.tl p { color: var(--muted); margin-top: 4px; font-size: 15.5px; }
.about p + p { margin-top: 14px; }
.about p { max-width: 34em; }

/* contact */
.contact { background: var(--ink); color: var(--bg); }
.contact .wrap { padding-block: 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.contact .eyebrow { color: var(--band-accent); }
.contact p.sub { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); margin-top: 14px; max-width: 30em; }
.lines { display: grid; gap: 10px; }
.cline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--bg) 25%, var(--ink)); border-radius: 8px; min-width: 0; }
.cline div { min-width: 0; }
.cline small { display: block; font: 600 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 6px; }
.cline span, .cline a.v { font-size: 16px; overflow-wrap: anywhere; user-select: all; text-decoration: none; }
.cline a.v:hover { text-decoration: underline; }
.copy { flex: none; background: transparent; color: var(--bg); border: 1px solid color-mix(in srgb, var(--bg) 40%, var(--ink)); border-radius: 999px; padding: 7px 12px; font: 600 12px/1 var(--font-body); cursor: pointer; }
.copy:hover { background: color-mix(in srgb, var(--bg) 12%, var(--ink)); }
a.profile-link { text-decoration: none; background: color-mix(in srgb, var(--band-accent) 14%, var(--ink)); border-color: var(--band-accent); }
a.profile-link .go { font: 700 22px/1 var(--font-display); color: var(--band-accent); transition: transform .15s ease; }
a.profile-link:hover .go { transform: translateX(4px); }
/* contact form (dark band) */
.contact .wrap { align-items: start; }
.cform { display: grid; gap: 10px; margin-top: 28px; max-width: 30em; }
.cform label { font: 600 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-accent); margin-top: 6px; }
.cform input, .cform textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--bg);
  background: color-mix(in srgb, var(--bg) 8%, var(--ink));
  border: 1px solid color-mix(in srgb, var(--bg) 25%, var(--ink)); border-radius: 8px; padding: 12px 14px;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--tape); outline-offset: 1px; }
.cform textarea { resize: vertical; min-height: 110px; }
.cform .btn.primary { justify-self: start; margin-top: 8px; border-color: var(--tape); background: var(--tape); color: var(--tape-ink); }
.cform .btn[disabled] { opacity: .6; cursor: wait; }
.cf-status { min-height: 1.4em; font-size: 15px; }
.cf-status.ok { color: var(--band-accent); }
.cf-status.err { color: #ff9b8f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: 1fr; padding-block: 56px; } }
footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 55%, var(--ink)); font-size: 13px; }
footer .wrap { padding-block: 0 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .label { animation: drop .7s cubic-bezier(.2,.8,.2,1) both .1s; }
  @keyframes drop { from { transform: translateY(-14px) rotate(-2deg); } to { transform: rotate(1.6deg); } }
  .btn { transition: transform .15s ease; }
}
