@charset "UTF-8";

:root {
  color-scheme: light;
  --page: #f6f5ef;
  --ink: #153d32;
  --muted: #52675e;
  --line: #d7dfd5;
  --surface: #fffef9;
  --emerald: #236a52;
  --mint: #dcebe1;
  --blue: #dae7f0;
  --cream: #f0e8d8;
  --focus: #125ad0;
  --shadow: 0 24px 60px #173e3217;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #10251f;
  --ink: #edf1e5;
  --muted: #b3c7bb;
  --line: #365047;
  --surface: #1a342b;
  --emerald: #b9dfc9;
  --mint: #233f34;
  --blue: #263d49;
  --cream: #3a3b2e;
  --focus: #b1d8ff;
  --shadow: 0 24px 60px #0003;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #10251f;
    --ink: #edf1e5;
    --muted: #b3c7bb;
    --line: #365047;
    --surface: #1a342b;
    --emerald: #b9dfc9;
    --mint: #233f34;
    --blue: #263d49;
    --cream: #3a3b2e;
    --focus: #b1d8ff;
    --shadow: 0 24px 60px #0003;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--page); color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--page); }
a { color: inherit; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible, #main:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 5px;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; line-height: 1.75; }
h1, h2, h3, h4 { margin: 0; font-weight: 550; }
h1, h2 { letter-spacing: -.045em; text-wrap: balance; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 14px 20px; background: var(--ink); color: var(--page); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 112px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.monogram { display: grid; place-items: center; width: 40px; height: 40px; background: var(--ink); color: var(--page); border-radius: 50%; font-size: 27px; font-family: Georgia, serif; padding-bottom: 4px; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-size: 14px; }
nav a:hover { text-decoration: underline; }
.theme-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 106px; min-height: 44px; border: 1px solid var(--line); border-radius: 24px; padding: 8px 14px; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; }
.theme-toggle > span:first-child { font-size: 23px; line-height: 1; }
.theme-toggle[hidden] { display: flex !important; visibility: hidden; }
.theme-toggle:hover { background: var(--mint); }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 36px 38px; min-height: 710px; position: relative; padding-top: 55px; }
#hero-network { position: absolute; inset-block: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%); pointer-events: none; opacity: .7; }
.hero-copy, .portrait-scene, .hero-foot { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
h1 { margin-top: 26px; font-size: clamp(42px, 4.4vw, 62px); line-height: 1.08; max-width: 680px; }
h1 a { color: var(--emerald); text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 8px; }
h1 a:hover { text-decoration-color: var(--emerald); }
.hero-period { color: var(--ink); }
.nowrap { white-space: nowrap; }
.hero-description { font-size: 17px; max-width: 480px; margin-top: 28px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 52px; padding: 15px 23px; border-radius: 30px; text-decoration: none; font-size: 14px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.button-primary { color: var(--page); background: var(--ink); }
.button:hover, .button:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.button span { font-size: 19px; }
.text-link { display: inline-flex; min-height: 48px; gap: 20px; align-items: center; font-size: 14px; text-decoration-thickness: 1px; }
.portrait-scene { display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 510px; justify-self: end; }
.portrait-ring { width: 84%; border-radius: 50%; padding: 9px; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.portrait-ring::before { content: ""; position: absolute; inset: -24px; border: 1px dashed var(--line); border-radius: 50%; z-index: -1; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.orbit-label { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 6px 20px #163c3210; border-radius: 28px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.emoji-icon { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.15em; font-style: normal; font-weight: 400; line-height: 1; }
.orbit-label .emoji-icon { font-size: 17px; }
.orbit-mobile { left: 0; top: 15%; transform: rotate(-8deg); }
.orbit-backend { right: -1%; top: 23%; transform: rotate(7deg); }
.orbit-product { left: 1%; bottom: 20%; transform: rotate(5deg); }
.orbit-craft { right: 0; bottom: 13%; transform: rotate(-7deg); }
.portrait-caption { position: absolute; bottom: -17px; font-family: Georgia, serif; font-size: 15px; font-style: italic; color: var(--muted); }
.hero-foot { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 44px; padding-block: 25px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.hero-foot p:first-child { display: flex; align-items: center; gap: 10px; }
.clock-divider { color: var(--line); margin-inline: 4px; }
#cape-town-clock { font-variant-numeric: tabular-nums; min-width: 42px; }
.hero-foot-note { font-family: Georgia, serif; font-style: italic; font-size: 14px; }
.work-section { padding-block: 94px 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 35px; }
h2 { font-size: clamp(34px, 3.3vw, 46px); line-height: 1.15; }
.section-heading h2 { margin-top: 14px; }
.section-heading > p { color: var(--muted); max-width: 320px; font-size: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { border: 1px solid var(--line); border-radius: 22px; padding: 26px 30px 14px; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.homely-card { --focus: #153d32; background: #e7edcc; color: #283d24; border-color: #d1dab6; }
.clearscore-card { background: var(--mint); }
.notes-card { background: var(--cream); }
.takealot-card { background: var(--blue); }
.card-top { display: flex; align-items: center; gap: 12px; }
.project-mark { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; }
.homely-mark { object-fit: cover; }
.card-category { font-size: 10px; font-weight: 600; }
.card-number { margin-left: auto; font-family: Georgia, serif; font-size: 13px; opacity: .7; }
.project-art { height: 210px; display: flex; align-items: center; justify-content: center; position: relative; margin-block: 10px 12px; }
.homely-art { flex-direction: column; gap: 18px; }
.house { width: 110px; height: 85px; position: relative; border: 2px solid #59713e; border-top: 0; border-radius: 0 0 6px 6px; margin-top: 35px; }
.house::before { content: ""; position: absolute; width: 76px; height: 76px; border: 2px solid #59713e; border-right: 0; border-bottom: 0; transform: rotate(45deg); top: -39px; left: 15px; border-radius: 5px 0 0; }
.house-window { position: absolute; top: 20px; left: 17px; width: 24px; height: 24px; background: #d2eb70; border: 2px solid #59713e; border-radius: 3px; }
.house-door { position: absolute; bottom: 0; right: 19px; width: 25px; height: 45px; border: 2px solid #59713e; border-bottom: 0; border-radius: 14px 14px 0 0; }
.art-note { font-family: Georgia, serif; font-style: italic; font-size: 16px; color: #455b35; }
.score-arc { width: 180px; height: 180px; border: 2px solid var(--emerald); border-bottom-color: transparent; border-radius: 50%; display: grid; place-items: center; position: relative; }
.score-arc::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--emerald); border-bottom-color: transparent; border-radius: 50%; opacity: .45; }
.score-arc::after { content: ""; position: absolute; top: 21px; right: 19px; width: 11px; height: 11px; background: var(--emerald); border: 5px solid var(--mint); box-sizing: content-box; border-radius: 50%; }
.score-arc > span { text-align: center; font-family: Georgia, serif; font-size: 35px; }
.score-arc small { display: block; font-family: "Avenir Next", Avenir, sans-serif; font-size: 9px; margin-top: 9px; letter-spacing: .01em; }
.note-paper { width: 190px; height: 145px; padding: 22px; color: #3e493b; background: #fffcf0; border-radius: 4px; box-shadow: 0 9px 15px #514c3314; transform: rotate(-7deg); }
.note-paper span { font-family: Georgia, serif; font-size: 15px; line-height: 1.4; display: block; margin-bottom: 16px; }
.note-paper i { display: block; height: 1px; background: #d5d9c6; margin-block: 12px; }
.note-paper i:last-child { width: 66%; }
.shopping-stack { width: 228px; transform: rotate(-5deg); }
.shopping-stack span { display: flex; justify-content: space-between; padding: 12px 17px; margin-block: 8px; color: #234758; background: #f2f8fb; box-shadow: 0 5px 10px #334e6510; border-radius: 8px; font-size: 12px; }
.shopping-stack span:nth-child(2) { transform: translateX(18px); background: #e6f0f6; }
.shopping-stack span:nth-child(3) { transform: translateX(-8px); background: #c3dbea; }
.shopping-stack b { font-size: 15px; }
.card-copy { flex: 1; }
h3 { font-size: 29px; letter-spacing: -.03em; }
.card-tagline { margin-top: 4px; font-size: 15px; font-weight: 500; }
.app-metrics { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 10px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 30px; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.card-copy > p:last-child { font-size: 14px; margin-block: 15px 23px; line-height: 1.75; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 18%, transparent); font-size: 12px; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-link span { font-size: 20px; transition: transform .2s; }
.card-link:hover span, .card-link:focus-visible span { transform: translate(2px, -2px); }
.about-section { padding-block: 18px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.about-copy h2 { margin-block: 20px 28px; }
.about-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin-bottom: 17px; }
.values { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.values span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 24px; font-size: 10px; color: var(--muted); }
.experience { padding-top: 12px; }
.experience > h3 { font-size: 20px; margin-bottom: 26px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 108px 1fr; gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline-date { padding-top: 3px; font-size: 11px; color: var(--muted); }
.timeline h4 { font-size: 16px; font-weight: 600; }
.timeline p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.honours { display: block; font-family: Georgia, serif; font-style: italic; }
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 50px 55px; background: var(--mint); border-radius: 20px; }
.contact-section h2 { margin-top: 16px; }
.contact-section .button { flex-shrink: 0; min-width: 170px; }
.site-footer { padding-block: 44px 35px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 11px; }
.site-footer p span { color: var(--muted); }
.site-footer nav { gap: 20px; flex-wrap: wrap; }
.site-footer nav a { font-size: 11px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter .8s both; }
  .portrait-scene { animation: enter 1s .12s both; }
  .reveal.is-visible { animation: enter .65s both; }
  @keyframes enter { from { opacity: .1; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 35px 24px; min-height: 660px; }
  h1 { font-size: 48px; }
  .about-section { gap: 65px; }
  .portrait-caption { font-size: 13px; }
  .orbit-label { padding: 9px 13px; font-size: 11px; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; gap: 38px; }
  .hero-copy { max-width: 670px; }
  h1 { font-size: clamp(42px, 6.9vw, 57px); max-width: 680px; }
  .hero-description { max-width: 550px; }
  .portrait-scene { width: min(480px, 85%); justify-self: center; }
  .hero-foot { margin-top: 6px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 460px; margin-top: 20px; }
  .work-card { padding: 22px 23px 10px; }
  .card-category { max-width: 160px; font-size: 9px; }
  .card-number { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 35px; }
  .about-copy { max-width: 620px; }
  .contact-section { padding: 40px 30px; }
  .site-footer { align-items: flex-start; }
  .site-footer nav { gap: 6px 18px; max-width: 240px; justify-content: flex-end; }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 92px; gap: 12px; flex-wrap: wrap; padding-block: 17px; }
  .wordmark { font-size: 12px; gap: 8px; }
  .monogram { width: 32px; height: 32px; font-size: 23px; }
  .site-header nav { gap: 8px; }
  .site-header nav > a { font-size: 12px; }
  .theme-toggle { min-width: 44px; padding: 8px; }
  #theme-label { display: none; }
  .hero { padding-top: 28px; gap: 28px; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; }
  h1 { font-size: clamp(38px, 9.6vw, 53px); margin-top: 22px; }
  .hero-description { font-size: 15px; margin-top: 25px; }
  .hero-actions { margin-top: 25px; gap: 22px; }
  .button { font-size: 12px; gap: 25px; padding: 13px 20px; }
  .text-link { font-size: 12px; gap: 12px; }
  .portrait-scene { width: 100%; max-width: 430px; margin-top: 8px; }
  .portrait-ring { width: 84%; padding: 7px; }
  .portrait-ring::before { inset: -16px; }
  .orbit-label { padding: 8px 12px; font-size: 10px; gap: 6px; }
  .portrait-caption { bottom: -10px; font-size: 12px; }
  .hero-foot { margin-top: 20px; padding-block: 22px; font-size: 10px; }
  .hero-foot p:first-child { gap: 7px; }
  .hero-foot-note { display: none; }
  .work-section { padding-block: 60px 65px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading > p { font-size: 13px; }
  h2 { font-size: 35px; }
  .work-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-card { padding: 22px 25px 12px; }
  .card-category { max-width: none; font-size: 10px; }
  .card-number { display: block; }
  .project-art { height: 190px; }
  .about-section { padding-block: 5px 60px; gap: 22px; }
  .about-copy > p:not(.eyebrow) { font-size: 14px; }
  .timeline li { grid-template-columns: 86px 1fr; gap: 18px; }
  .timeline-date { font-size: 10px; }
  .contact-section { display: block; padding: 33px 25px; }
  .contact-section h2 { font-size: 32px; }
  .contact-section .button { margin-top: 26px; }
  .site-footer { display: block; padding-block: 28px; }
  .site-footer nav { justify-content: flex-start; gap: 8px 18px; max-width: none; margin-top: 13px; }
}
@media (max-width: 370px) {
  .wordmark > span:last-child { max-width: 90px; }
  .work-card { padding-inline: 20px; }
  .card-category { font-size: 9px; }
  .hero-actions { gap: 14px; }
  .button { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
