<style>
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --cream: #F8F5EF;
    --ink: #1A1612;
    --warm-mid: #6B5B4E;
    --accent: #C4714A;
    --accent-light: #F0DDD4;
    --border: rgba(26,22,18,0.12);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 5vw;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
  }
  nav.scrolled { box-shadow: 0 2px 24px rgba(26,22,18,0.08); }

  .nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); font-style: italic; }

  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--warm-mid);
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }

  .nav-cta {
    background: var(--ink);
    color: var(--cream) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    letter-spacing: 0.08em !important;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--accent) !important; color: var(--cream) !important; }

  #hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  grid-template-areas:
    "left right"
    "left awards";
  align-items: start;
}

  .hero-left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6vh 4vw 6vh 8vw;
  }

  .hero-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.25rem;
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1.75rem;
  }
  .hero-title em { font-style: italic; color: var(--accent); }

  .hero-sub {
    font-size: 1.05rem;
    color: var(--warm-mid);
    max-width: 440px;
    margin-bottom: 2rem;
    line-height: 1.75;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 560px;
  }
  .stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    line-height: 1;
  }
  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-mid);
  }

  .btn-row { 
    display: flex; 
    align-items: flex-start;
    gap: 2rem; 
    flex-wrap: nowrap; 
  }

  .btn-primary {
    background: var(--ink);
    color: var(--cream);
    padding: 0.9rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--accent); }

  .btn-outline {
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: 0.9rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
    display: inline-block;
  }
  .btn-outline:hover { background: var(--ink); color: var(--cream); }

  .hero-right {
    grid-area: right;
    position: relative;
    overflow: visible;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 5.5rem 4vw 2rem 0;
    margin-top: 0;
    align-self: start;
  }
  .hero-right img {
    width: min(100%, 315px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 32% 52%;
    opacity: 0.9;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(26,22,18,0.12);
  }
  .hero-badge {
    position: static;
    background: var(--ink);
    color: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 2px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    max-width: 260px;
    line-height: 1.5;
  }
  .hero-badge cite {
    display: block;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    color: rgba(248,245,239,0.6);
  }
  .hero-tools-note {
    margin-top: 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
  }

  section { padding: 7rem 8vw; }
  .section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  .section-title em { font-style: italic; color: var(--accent); }
  .section-body { color: var(--warm-mid); max-width: 600px; margin-bottom: 3.5rem; font-size: 1.02rem; }

  #results {
    background: var(--ink);
    color: var(--cream);
    padding: 5rem 8vw;
  }
  .results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(248,245,239,0.15);
    border-left: 1px solid rgba(248,245,239,0.15);
    margin-top: 3rem;
  }
  .result-card {
    border-right: 1px solid rgba(248,245,239,0.15);
    border-bottom: 1px solid rgba(248,245,239,0.15);
    padding: 2.5rem 2rem;
    position: relative;
  }
  .result-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    display: block;
  }
  .result-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248,245,239,0.5);
    display: block;
    margin: 0.4rem 0 0.75rem;
  }
  .result-desc { font-size: 0.9rem; color: rgba(248,245,239,0.7); line-height: 1.6; }

  #stack {
    background: transparent;
    color: var(--ink);
    margin-top: -4.5rem;
    padding-top: 0;
    position: relative;
    z-index: 3;
  }
  #stack .section-tag,
  #stack .section-title,
  #stack .section-body { display: none; }
  .stack-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    background: rgba(248,245,239,0.92);
    border: 1px solid rgba(26,22,18,0.08);
    box-shadow: 0 18px 40px rgba(26,22,18,0.08);
    backdrop-filter: blur(8px);
  }
  .stack-shell-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }
  .stack-shell-title em { font-style: italic; color: var(--accent); }
  .stack-shell-body {
    color: var(--warm-mid);
    max-width: 560px;
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .stack-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }
  .stack-group-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .stack-items { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .stack-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(26,22,18,0.08);
    border-radius: 2px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    color: var(--ink);
    transition: border-color 0.2s, background 0.2s;
  }
  .stack-pill:hover { border-color: var(--accent); background: rgba(196,113,74,0.08); }
  .stack-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .stack-logo svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  #services { background: #F2EDE5; }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .service-card {
    border: 1px solid var(--border);
    background: var(--cream);
    overflow: hidden;
    padding: 0;
  }
  .service-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8ddd2;
  }
  .service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .service-copy {
    padding: 2rem 1.8rem 2.1rem;
  }
  .service-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 1rem;
  }
  .service-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--ink);
  }
  .service-desc { font-size: 0.88rem; color: var(--warm-mid); line-height: 1.7; }

  #work { background: #F2EDE5; }
  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .work-card {
    background: var(--cream);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .work-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    display: block;
  }
  .work-card:hover img { transform: scale(1.04); }
  .work-overlay {
    background: rgba(248,245,239,0.84);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    min-height: 170px;
  }
  .work-tag {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
  }
  .work-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
  }
  .work-site { font-size: 0.8rem; color: var(--warm-mid); margin-top: 0.45rem; }

  .gallery-carousel {
    position: relative;
  }
  #gallery {
    background: var(--ink);
    color: var(--cream);
  }
  #gallery .section-title { color: var(--cream); }
  #gallery .section-body { color: rgba(248,245,239,0.62); }
  #gallery .gallery-viewport { border-color: rgba(248,245,239,0.12); background: rgba(248,245,239,0.04); }
  #gallery .gallery-slide { background: rgba(248,245,239,0.03); border-right-color: rgba(248,245,239,0.12); }
  #gallery .gallery-slide img { background: rgba(248,245,239,0.06); }
  #gallery .gallery-cap { background: var(--ink); border-top-color: rgba(248,245,239,0.12); }
  #gallery .gallery-cap-name { color: var(--cream); }
  #gallery .gallery-btn {
    border-color: rgba(248,245,239,0.18);
    background: transparent;
    color: var(--cream);
  }
  #gallery .gallery-btn:hover {
    background: rgba(248,245,239,0.12);
    border-color: rgba(248,245,239,0.3);
    color: var(--cream);
  }
  #gallery .gallery-btn:disabled {
    background: transparent;
    border-color: rgba(248,245,239,0.12);
    color: rgba(248,245,239,0.45);
  }
  #gallery .gallery-dot { background: rgba(248,245,239,0.2); }
  #gallery .gallery-dot.active { background: var(--accent); }
  .gallery-viewport {
    overflow: hidden;
    border: 1px solid var(--border);
    background: #efe7dd;
  }
  .gallery-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
  }
  .gallery-slide {
    min-width: calc(100% / 3);
    padding: 0;
    border-right: 1px solid var(--border);
    background: var(--cream);
  }
  .gallery-slide:last-child { border-right: none; }
  .gallery-figure {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .gallery-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f6f1ea;
    padding: 0.35rem;
    display: block;
  }
  .gallery-cap {
    padding: 1rem 1rem 1.1rem;
    background: var(--cream);
    border-top: 1px solid var(--border);
  }
  .gallery-cap-tag { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
  .gallery-cap-name { font-size: 0.88rem; color: var(--ink); margin-top: 0.3rem; }
  .gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  .gallery-buttons {
    display: flex;
    gap: 0.75rem;
  }
  .gallery-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .gallery-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
  }
  .gallery-btn:disabled {
    opacity: 0.35;
    cursor: default;
    background: var(--cream);
    border-color: var(--border);
    color: var(--ink);
  }
  .gallery-dots {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(26,22,18,0.18);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  .gallery-dot.active {
    background: var(--accent);
    transform: scale(1.05);
  }
/* Makes the whole slide feel clickable */
.gallery-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* Subtle zoom effect on the image when hovering */
.gallery-link:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Style for the "Click to View" hint */
.view-hint {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 4px;
    color: var(--accent); /* Or any color that stands out */
}

  #experience { border-top: 1px solid var(--border); }
  .exp-list { display: flex; flex-direction: column; gap: 0; }
  .exp-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
  }
  .exp-dates {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
  }
  .exp-company {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
  }
  .exp-location { font-size: 0.8rem; color: var(--warm-mid); }
  .exp-role { font-weight: 500; font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--ink); }
  .exp-bullets { list-style: none; }
  .exp-bullets li {
    font-size: 0.9rem;
    color: var(--warm-mid);
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
    line-height: 1.6;
  }
  .exp-bullets li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.75rem;
    top: 0.45rem;
  }

  #wireframe { border-top: 1px solid var(--border); }
  .wireframe-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
  }
  .wireframe-callout {
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    padding: 1.75rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.65;
    align-self: center;
  }
  .wireframe-callout cite {
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-mid);
    display: block;
    margin-top: 0.75rem;
  }

  .ux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .ux-card {
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
  }
  .ux-card-head {
    background: var(--ink);
    color: var(--cream);
    padding: 0.75rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .ux-card-body { padding: 1.25rem; }

  .arch-diagram {
    background: #eef3f7;
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .arch-board {
    position: relative;
    border: 1px solid rgba(26,22,18,0.12);
    background:
      linear-gradient(rgba(26,22,18,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(26,22,18,0.035) 1px, transparent 1px);
    background-size: 18px 18px;
    padding: 1rem;
    overflow: hidden;
  }
  .arch-root {
    width: min(100%, 230px);
    min-width: 0;
    margin: 0 auto;
  }
  .arch-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
  }
  .arch-row::before {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    top: -1rem;
    border-top: 1px solid rgba(26,22,18,0.18);
  }
  .arch-row::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -2rem;
    bottom: calc(100% - 1rem);
    border-left: 1px solid rgba(26,22,18,0.18);
  }
  .arch-child {
    position: relative;
  }
  .arch-child::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -1rem;
    bottom: 100%;
    border-left: 1px solid rgba(26,22,18,0.18);
  }
  .wf-window {
    border: 1px solid rgba(26,22,18,0.16);
    background: rgba(255,255,255,0.72);
    box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset;
    width: 100%;
    overflow: hidden;
  }
  .wf-chrome {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid rgba(26,22,18,0.1);
    background: rgba(26,22,18,0.04);
  }
  .wf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(26,22,18,0.2);
  }
  .wf-page {
    padding: 0.45rem;
  }
  .wf-label {
    display: inline-block;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.45rem;
  }
  .wf-title {
    height: 11px;
    width: 56%;
    background: rgba(26,22,18,0.72);
    margin-bottom: 0.55rem;
  }
  .wf-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.28rem;
    margin-bottom: 0.5rem;
  }
  .wf-nav span,
  .wf-button,
  .wf-box,
  .wf-line {
    background: rgba(26,22,18,0.1);
    display: block;
  }
  .wf-nav span {
    height: 8px;
  }
  .wf-hero {
    border: 1px dashed rgba(26,22,18,0.12);
    padding: 0.42rem;
    margin-bottom: 0.42rem;
  }
  .wf-hero .wf-title {
    width: 64%;
    height: 11px;
  }
  .wf-line {
    height: 6px;
    margin-bottom: 0.28rem;
  }
  .wf-line.short { width: 52%; }
  .wf-line.mid { width: 74%; }
  .wf-button {
    width: 34%;
    height: 9px;
    margin-top: 0.35rem;
    background: rgba(196,113,74,0.28);
  }
  .wf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .wf-box {
    height: 24px;
  }
  .wf-small .wf-page {
    padding: 0.5rem;
  }
  .wf-small .wf-title {
    width: 78%;
    height: 8px;
  }
  .wf-small .wf-box {
    height: 18px;
    margin-top: 0.3rem;
  }

  .seg-illustration {
    background: #f3ebe2;
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .seg-orbit {
    position: relative;
    min-height: 190px;
  }
  .seg-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.9rem;
    font-size: 0.73rem;
    line-height: 1.4;
    font-weight: 500;
  }
  .seg-node {
    position: absolute;
    width: 118px;
    background: var(--cream);
    border: 1px solid rgba(26,22,18,0.14);
    padding: 0.65rem;
    font-size: 0.68rem;
    line-height: 1.45;
    color: var(--warm-mid);
  }
  .seg-node strong {
    display: block;
    color: var(--ink);
    font-size: 0.74rem;
    margin-bottom: 0.15rem;
  }
  .seg-node::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 1px;
    background: rgba(196,113,74,0.45);
  }
  .seg-node.top { top: 0; left: 50%; transform: translateX(-50%); }
  .seg-node.top::after { left: 50%; bottom: -17px; transform: translateX(-50%) rotate(90deg); }
  .seg-node.left { left: 0; top: 50%; transform: translateY(-50%); }
  .seg-node.left::after { right: -34px; top: 50%; transform: translateY(-50%); }
  .seg-node.right { right: 0; top: 50%; transform: translateY(-50%); }
  .seg-node.right::after { left: -34px; top: 50%; transform: translateY(-50%); }
  .seg-node.bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
  .seg-node.bottom::after { left: 50%; top: -17px; transform: translateX(-50%) rotate(90deg); }

  .journey-steps,
  .site-steps,
  .ab-steps,
  .seg-steps { display: flex; flex-direction: column; gap: 0; }

  .journey-step,
  .site-step,
  .ab-step,
  .seg-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
  }
  .journey-step:last-child,
  .site-step:last-child,
  .ab-step:last-child,
  .seg-step:last-child { border-bottom: none; }

  .j-num,
  .site-num,
  .ab-num,
  .seg-num {
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .j-label,
  .site-label,
  .ab-label-main,
  .seg-label-main { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
  .j-sub,
  .site-sub,
  .ab-sub,
  .seg-sub { font-size: 0.72rem; color: var(--warm-mid); }

  .cta-mock {
    background: var(--ink);
    color: var(--cream);
    padding: 1.5rem;
    border-radius: 2px;
    text-align: center;
    margin-bottom: 1rem;
  }
  .cta-mock-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.5rem; }
  .cta-mock-body { font-size: 0.75rem; color: rgba(248,245,239,0.65); margin-bottom: 1rem; }
  .cta-mock-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .cta-annotations { display: flex; flex-direction: column; gap: 0.4rem; }
  .cta-note { font-size: 0.72rem; color: var(--warm-mid); display: flex; gap: 0.5rem; align-items: flex-start; }
  .cta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 4px; }

  .best-practice-note {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--warm-mid);
    line-height: 1.6;
  }

  #education {
    border-top: none;
    background: var(--ink);
    color: var(--cream);
  }
  #education .section-tag { color: var(--accent); }
  #education .section-title { color: var(--cream); }
  #education .section-body { color: rgba(248,245,239,0.6); }
  .edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .edu-school {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--cream);
  }
  .edu-loc { font-size: 0.75rem; color: rgba(248,245,239,0.55); letter-spacing: 0.06em; margin-bottom: 0.9rem; }
  .edu-certs { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
  .edu-certs li {
    font-size: 0.85rem;
    color: rgba(248,245,239,0.72);
    padding-left: 1rem;
    position: relative;
  }
  .edu-certs li::before { content: '.'; position: absolute; left: 0; color: var(--accent); }
  .education-cta-wrap {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }
  .education-cta {
    border: 1px solid rgba(248,245,239,0.22);
    color: var(--cream);
    padding: 0.9rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s;
  }
  .education-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
  }

  #contact {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 7rem 8vw;
  }
  #contact .section-title { color: var(--cream); }
  #contact .section-body { color: rgba(248,245,239,0.6); margin: 0 auto 3rem; }

  .contact-form { max-width: 540px; margin: 0 auto; text-align: left; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
  .form-group label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248,245,239,0.5);
  }
  .form-group input, .form-group textarea, .form-group select {
    background: rgba(248,245,239,0.06);
    border: 1px solid rgba(248,245,239,0.15);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
  }
  .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent);
  }
  .form-group textarea { min-height: 120px; resize: vertical; }
  .form-group select option { background: var(--ink); }
  .form-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
  }
  .form-submit:hover { background: #D47E5A; }

  footer {
    background: #120F0C;
    color: rgba(248,245,239,0.45);
    padding: 2rem 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
  }
  footer a { color: rgba(248,245,239,0.45); text-decoration: none; }
  footer a:hover { color: var(--accent); }
  .footer-links { display: flex; gap: 2rem; }

  .award-strip {
    grid-area: awards;
    display: flex;
    gap: 1.5rem;
    grid-column: 2;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  .award-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--accent-light);
    border: 1px solid rgba(196,113,74,0.25);
    padding: 0.65rem 1.25rem;
    border-radius: 2px;
  }
  .award-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
  }
  .award-text { font-size: 0.78rem; line-height: 1.4; }
  .award-text strong { display: block; font-size: 0.82rem; color: var(--ink); }

  .fade-up {
    opacity: 1;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  .fade-up.visible { opacity: 1; transform: none; }
  .fade-up:nth-child(2) { transition-delay: 0.1s; }
  .fade-up:nth-child(3) { transition-delay: 0.2s; }
  .fade-up:nth-child(4) { transition-delay: 0.3s; }

   @media (max-width: 900px) {
  /* Layout resets */
  #hero {
    padding: 5px;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
      "left   right"
      "sub    sub"
      "stats  stats"
      "btns   btns"
      "awards awards";
  }

  .hero-left {
    grid-area: left;
    display: contents;
    
  }
     .hero-tag {
       display: none;
     }
     .hero-title {
       grid-column: 1;          /* left column only, beside image */
    text-align: left;
    align-self: center;      /* vertically center beside the image */
    padding-left: 5vw;
    padding-right: 2vw;
       grid-area: left;
       margin-top: 90px;
     }
     
  .hero-sub {
    grid-area: sub;
    max-width: none;
    text-align: center;
    padding: 1rem 5vw 20px;
    margin: 0;
  }

  .hero-stats {
    grid-area: stats;
    justify-content: center;
    padding: 20px 5vw;
    margin: 0;
  }
  .stat-num { font-size: 1.75rem; text-align: center;}

  .hero-right {
    grid-area: right;
    padding: 5.5rem 5vw 0 0;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
  }
  .hero-right img {
    display: block;
    width: min(28vw, 220px);
    height: auto;
  }

  /* Hide badge + tools note — not enough room */
  .hero-badge,
  .hero-tools-note {
    display: none;
  }

  .hero-tools-note { margin-top: 1rem; text-align: center; }

  /* Buttons stack full-width for thumb reach */
.btn-row {
    grid-area: btns;
    justify-content: center;
    padding: 0 5vw;
    flex-wrap: wrap;
  }
     .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 1rem 1.25rem; }

  /* Nav: hamburger replacement -> compact CTA only */
  nav { padding: 0.85rem 5vw; }
  .nav-links { display: none; }
  .nav-logo { font-size: 1.15rem; }
  .nav-cta { padding: 0.45rem 1rem; font-size: 0.72rem; }

  /* Sections */
  section { padding: 3.5rem 5vw; }
  .section-title { font-size: clamp(1.75rem, 6vw, 2.4rem); }
  .section-body { font-size: 0.95rem; margin-bottom: 2.25rem; }

  /* Single-column collapses */
  .results-grid,
  .work-grid,
  .services-grid,
  .stack-groups,
  .wireframe-intro,
  .edu-grid,
  .form-row,
  .ux-grid { grid-template-columns: 1fr; gap: 1rem; }

  .results-grid { margin-top: 2rem; border-left: none; border-top: none; }
  .result-card { padding: 1.75rem 1.25rem; border-left: none; }
  .result-num { font-size: 2.5rem; }
  #results { padding: 3.5rem 5vw; }

  /* Stack section */
  #stack { margin-top: -1.5rem; padding-left: 5vw; padding-right: 5vw; }
  .stack-shell { padding: 1.25rem; }
  .stack-shell-title { font-size: 1.6rem; }

  /* Services */
  .service-copy { padding: 1.5rem 1.25rem 1.75rem; }
  .service-num { font-size: 2.25rem; }
  .service-name { font-size: 1.2rem; }

  /* Work */
  .work-overlay { padding: 1.25rem; min-height: auto; }

  /* Gallery — one slide at a time */
  .gallery-slide { min-width: 100%; }
  .gallery-slide img { aspect-ratio: 4 / 3; }
  .gallery-controls {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.85rem;
  }
  .gallery-buttons { justify-content: center; }
  .gallery-btn { width: 48px; height: 48px; }
  .gallery-dots { justify-content: center; }

  /* Experience */
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.75rem 0; }

  /* Wireframe / UX */
  .wireframe-intro { gap: 2rem; margin-bottom: 2.5rem; }
  .wireframe-callout { font-size: 1rem; padding: 1.25rem; }
  .arch-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .arch-row::before, .arch-row::after { display: none; }
  .arch-child::before { display: none; }
  .arch-root { width: 100%; }

  /* Segment orbit -> stacked */
  .seg-orbit {
    position: relative;   /* cancel inherited stacking context */
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .seg-center,
  .seg-node.top,
  .seg-node.left,
  .seg-node.right,
  .seg-node.bottom {
    position: static;
    top: unset;
    left: unset;
    right: unset;
    bottom: unset;
    transform: none;
    width: 100%;
  }
     .seg-center {
    height: auto;
    min-height: 64px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .seg-node {
    width: 100%;
  }
     .seg-node::after {
    display: none;
  }
  /* Awards */
  .award-strip {
    margin: 0 auto;
grid-column: 1 / -1; 
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.5rem 5vw 0;
  }
  .award-badge { width: auto;}

  /* Education */
  #education { padding: 3.5rem 5vw; }
  .education-cta { width: 100%; text-align: center; }

  /* Contact */
  #contact { padding: 4rem 5vw; }
  .contact-form { max-width: 100%; }
  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 5vw;
  }
  .footer-links { flex-direction: column; gap: 0.65rem; }
}

.gallery-controls {
  margin-top: 1.5rem;  /* was 1.25rem — increase to taste */
}

.gallery-dots {
  padding-top: 0.5rem;
}

@media (max-width: 480px) {
  .hero-stats { gap: 1rem 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .nav-logo { font-size: 1rem; }
  .stack-pill { font-size: 0.75rem; padding: 0.45rem 0.75rem; }
  .result-num { font-size: 2.1rem; }
}
  
  .hero-right img {
    width: min(26vw, 130px);
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}
</style>
