:root {
    --ink: #1a231d;
    --muted: #5f675f;
    --paper: #f6f0e2;
    --paper-soft: rgba(255, 250, 242, 0.78);
    --paper-strong: #fbf6ed;
    --moss: #314d3f;
    --moss-soft: #70867a;
    --terracotta: #a65b41;
    --gold: #b58b49;
    --line: rgba(26, 35, 29, 0.12);
    --line-strong: rgba(26, 35, 29, 0.22);
    --shadow: 0 24px 60px rgba(20, 27, 22, 0.12);
    --shadow-soft: 0 14px 36px rgba(20, 27, 22, 0.09);
    --max-width: 1140px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 26%),
        linear-gradient(180deg, rgba(182, 139, 73, 0.09), rgba(49, 77, 63, 0.06)),
        linear-gradient(180deg, #fbf6ec 0%, #f1e7d5 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 35, 29, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 35, 29, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    opacity: 0.35;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.hero {
    min-height: 100vh;
    padding: 1.5rem clamp(1.2rem, 3vw, 3rem) 3.5rem;
    background:
        linear-gradient(180deg, rgba(15, 20, 17, 0.24), rgba(15, 20, 17, 0.66)),
        url("caption.jpg") center/cover no-repeat;
    color: #fff8ef;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto auto -8rem -6rem;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 248, 239, 0.24), transparent 70%);
    filter: blur(6px);
}

.site-nav,
.hero-layout,
.section,
.detail-shell {
    width: min(var(--max-width), calc(100% - 0.2rem));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0 1.2rem;
}

.brand,
.hero h1,
.section-heading h2,
.panel-card h3,
.team-card h3,
.persona-card h3,
.detail-copy h1 {
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem 1.2rem;
    font-size: 0.96rem;
}

.nav-links a {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.hero-link:hover,
.hero-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
    border-color: currentColor;
}

.hero-layout {
    display: block;
    padding-top: 4.5rem;
}

.hero-content,
.section,
.detail-card {
    animation: rise-in 0.7s ease both;
}

.hero-content {
    max-width: 820px;
    padding-bottom: 1rem;
}

.eyebrow,
.section-kicker,
.subsection-kicker,
.card-tag,
.persona-label,
.callout-label {
    margin: 0 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.96;
    max-width: none;
}

.hero-subtitle {
    margin: 1.5rem 0 0;
    max-width: 40rem;
    font-size: clamp(1.04rem, 1.8vw, 1.24rem);
    color: rgba(255, 248, 239, 0.94);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.2rem;
    margin-top: 2rem;
}

.hero-button,
.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
}

.hero-button {
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.94);
    color: var(--moss);
    font-weight: 700;
    box-shadow: 0 12px 34px rgba(18, 24, 20, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(18, 24, 20, 0.24);
}

.hero-link {
    padding: 0 0 0.15rem;
    border-bottom: 1px solid transparent;
    font-weight: 700;
}

.portfolio-main {
    position: relative;
    padding-bottom: 2rem;
}

.section {
    padding: 5rem 0;
}

.section + .section {
    border-top: 1px solid rgba(26, 35, 29, 0.08);
}

.section-heading {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

.section-note,
.subsection-head > p,
.placeholder-caption,
.repository-note,
.persona-meta,
.member-intro,
.detail-copy p,
.placeholder-text,
.placeholder-mini {
    color: var(--muted);
}

.section-note,
.subsection-head > p {
    max-width: 45rem;
    margin: 0;
}

.eyebrow,
.section-kicker,
.subsection-kicker,
.card-tag,
.callout-label,
.section-note,
.subsection-head > p,
.placeholder-caption,
.repository-note {
    display: none;
}

.feature-grid,
.two-column-grid,
.three-column-grid,
.mini-grid,
.persona-grid,
.team-grid,
.research-columns,
.evidence-grid,
.sketch-grid,
.compare-grid,
.comparison-grid,
.ai-grid {
    display: grid;
    gap: 1.3rem;
}

.feature-grid,
.research-columns,
.two-column-grid,
.comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column-grid,
.compare-grid,
.testing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.persona-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.research-grid,
.feature-cards {
    display: grid;
    gap: 1rem;
}

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

.research-entry {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)),
        rgba(246, 240, 226, 0.62);
}

.research-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.research-title-cluster {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.research-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    object-fit: contain;
    padding: 0.38rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.research-icon-wide {
    width: 4.6rem;
}

.research-type {
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--terracotta);
}

.research-entry h5 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.32;
}

.research-meta {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.research-resource-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.research-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.34rem 0.8rem;
    border: 1px solid rgba(49, 77, 63, 0.2);
    border-radius: 999px;
    background: rgba(49, 77, 63, 0.08);
    color: var(--moss);
    font-size: 0.84rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.research-chip:hover,
.research-chip:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(20, 27, 22, 0.1);
    background: rgba(49, 77, 63, 0.12);
}

.insight-block + .insight-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 35, 29, 0.1);
}

.insight-block h6 {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--moss);
}

.research-list {
    margin: 0;
    padding-left: 1.15rem;
}

.research-list li + li {
    margin-top: 0.55rem;
}

.research-summary-card {
    margin-top: 1.3rem;
}

.research-summary-card h4 {
    margin: 0 0 0.75rem;
    color: var(--moss);
    font-size: 1.2rem;
}

.research-summary-list {
    margin-top: 1rem;
}

.evidence-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sketch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.panel-card,
.mini-card,
.team-card,
.persona-card,
.placeholder-card,
.detail-card,
.callout-card {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper-soft);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.panel-card,
.mini-card,
.persona-card {
    padding: 1.6rem;
}

.panel-card h3,
.mini-card h4,
.placeholder-card h4,
.placeholder-card h5,
.research-group h4,
.team-card h3,
.persona-card h3 {
    margin: 0 0 0.6rem;
}

.accent-card {
    background:
        linear-gradient(180deg, rgba(49, 77, 63, 0.08), rgba(166, 91, 65, 0.05)),
        var(--paper-soft);
}

.subsection-block {
    margin-top: 2rem;
}

.subsection-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.subsection-head h3 {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.subsection-kicker,
.card-tag,
.callout-label {
    color: var(--terracotta);
}

.plain-list {
    margin: 0;
    padding-left: 1.15rem;
}

.plain-list li + li {
    margin-top: 0.7rem;
}

.research-group,
.team-card,
.placeholder-card,
.callout-card {
    padding: 1.35rem;
}

.research-group h4 {
    font-size: 1.15rem;
    color: var(--moss);
}

.placeholder-card,
.placeholder-frame,
.placeholder-tile,
.blank-inline {
    border-style: dashed;
    border-color: var(--line-strong);
}

.placeholder-card {
    min-height: 150px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.16)),
        rgba(246, 240, 226, 0.54);
    box-shadow: none;
}

.placeholder-card h5 {
    font-size: 1rem;
}

.placeholder-mini {
    margin: 0.8rem 0 0;
    font-size: 0.92rem;
}

.testing-method-card {
    margin-bottom: 1.3rem;
}

.testing-method-card .plain-list {
    margin-top: 1rem;
}

.consent-card,
.feedback-change-card {
    margin-top: 1.2rem;
}

.consent-card {
    margin-bottom: 1.3rem;
}

.mapping-table-card .table-wrap,
.test-data-card .table-wrap,
.feedback-change-card .table-wrap {
    margin-top: 1rem;
}

.test-data-card {
    margin-bottom: 1.3rem;
}

.observation-head {
    margin-top: 1.2rem;
}

.before-after-card .placeholder-frame span {
    max-width: 18rem;
}

.iteration-gallery {
    display: grid;
    gap: 1.6rem;
    margin-top: 1.1rem;
}

.iteration-case {
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.iteration-case:first-child {
    padding-top: 0;
    border-top: 0;
}

.iteration-case-head h4 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.iteration-shot-grid {
    align-items: start;
}

.iteration-shot-group + .iteration-shot-group {
    margin-top: 1.2rem;
}

.iteration-subtitle {
    margin: 0 0 0.7rem;
    color: var(--moss);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.iteration-shot {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.iteration-image {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.6);
    box-shadow: var(--shadow-soft);
}

.iteration-shot-grid .iteration-shot {
    height: 100%;
}

.iteration-shot-grid .iteration-shot .iteration-image {
    height: 520px;
}

.iteration-image-wide {
    max-height: 680px;
}

.iteration-shot figcaption {
    min-height: 3.1rem;
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.test-record-card {
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
        rgba(246, 240, 226, 0.72);
    box-shadow: var(--shadow-soft);
}

.test-record-card h4 {
    margin: 0 0 0.9rem;
    font-size: 1.2rem;
}

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

.test-facts div {
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.56);
}

.test-facts dt {
    margin: 0 0 0.25rem;
    color: var(--moss);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.test-facts dd {
    margin: 0;
    font-weight: 700;
}

.testing-summary-grid {
    margin-top: 1.3rem;
}

.placeholder-frame {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 1.4rem;
    border: 2px dashed var(--line-strong);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(182, 139, 73, 0.08), rgba(49, 77, 63, 0.06));
    color: var(--muted);
    text-align: center;
}

.journey-figure {
    margin: 0;
}

.journey-image {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.tall-frame {
    min-height: 300px;
}

.prototype-card {
    min-height: 260px;
}

.placeholder-caption,
.repository-note {
    margin: 0.9rem 0 0;
}

.placeholder-tile {
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: 1rem;
    border: 2px dashed var(--line-strong);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.48);
    color: var(--muted);
    text-align: center;
}

.sketch-card {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
        rgba(246, 240, 226, 0.6);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.sketch-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #f8f3e7;
}

.sketch-card figcaption {
    margin-top: 0.65rem;
    color: var(--moss);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;
}

.selected-card {
    position: relative;
    border-color: rgba(49, 77, 63, 0.3);
    background:
        linear-gradient(180deg, rgba(49, 77, 63, 0.08), rgba(255, 255, 255, 0.28)),
        rgba(246, 240, 226, 0.54);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.7rem;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgba(49, 77, 63, 0.13);
    color: var(--moss);
    font-size: 0.82rem;
    font-weight: 700;
}

.callout-card + .callout-card {
    margin-top: 1rem;
}

.callout-label {
    margin-bottom: 0.35rem;
}

.table-wrap {
    overflow-x: auto;
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 26px;
    overflow: hidden;
    background: var(--paper-soft);
    box-shadow: var(--shadow);
}

.portfolio-table th,
.portfolio-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.portfolio-table thead th {
    background: rgba(49, 77, 63, 0.1);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portfolio-table tbody tr:last-child th,
.portfolio-table tbody tr:last-child td {
    border-bottom: 0;
}

.blank-inline {
    display: inline-flex;
    padding: 0.3rem 0.55rem;
    border: 1px dashed var(--line-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
}

.team-card-link {
    display: block;
    color: inherit;
}

.team-card,
.mini-card,
.persona-card,
.panel-card,
.callout-card,
.placeholder-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.team-card-link:hover .team-card,
.team-card-link:focus-visible .team-card,
.panel-card:hover,
.mini-card:hover,
.placeholder-card:hover,
.callout-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 62px rgba(20, 27, 22, 0.16);
}

.member-photo,
.detail-photo {
    display: block;
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.member-photo {
    aspect-ratio: 1 / 1;
    margin-bottom: 1.1rem;
    border-radius: 22px;
}

.member-email,
.detail-email {
    margin: 0 0 0.65rem;
    color: var(--gold);
    font-weight: 700;
}

.member-intro,
.panel-card p,
.mini-card p,
.persona-card p,
.team-card p,
.detail-copy p {
    margin: 0;
}

.panel-card p + p,
.mini-card p + p,
.detail-copy p + p {
    margin-top: 0.9rem;
}

.persona-card {
    border-top: 4px solid var(--gold);
}

.secondary-persona {
    border-top-color: var(--moss-soft);
}

.persona-header {
    margin-bottom: 1.2rem;
}

.persona-block + .persona-block {
    margin-top: 1rem;
}

.persona-block h4 {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--moss);
}

.persona-block ul,
.reference-list {
    margin: 0;
    padding-left: 1.2rem;
}

.comparison-grid {
    margin-top: 1rem;
}

.reference-list li + li {
    margin-top: 0.7rem;
}

.reference-link {
    color: var(--moss);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.inline-link {
    color: var(--moss);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    overflow-wrap: anywhere;
}

.reference-sep {
    margin: 0 0.32rem;
    color: var(--muted);
}

.site-footer {
    padding: 2rem 1.2rem 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.detail-page {
    min-height: 100vh;
}

.detail-shell {
    padding: 3rem 0 4rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.4rem;
    color: var(--moss);
    font-weight: 700;
    border-bottom: 1px solid transparent;
}

.detail-card {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 2rem;
    padding: 2rem;
}

.detail-photo {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
}

.detail-copy h1 {
    margin: 0 0 0.6rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .feature-grid,
    .research-columns,
    .two-column-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .three-column-grid,
    .compare-grid,
    .testing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evidence-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sketch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subsection-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .iteration-shot-grid .iteration-shot .iteration-image {
        height: 460px;
    }
}

@media (max-width: 720px) {
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .hero-layout {
        padding-top: 2rem;
    }

    .hero h1 {
        max-width: none;
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .section {
        width: min(var(--max-width), calc(100% - 1.35rem));
        padding: 4rem 0;
    }

    .three-column-grid,
    .compare-grid,
    .testing-grid,
    .research-grid,
    .evidence-grid,
    .sketch-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-table th,
    .portfolio-table td {
        padding: 0.85rem 0.9rem;
    }

    .detail-card {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }

    .research-entry-head {
        flex-direction: column;
    }

    .iteration-shot-grid .iteration-shot .iteration-image {
        height: auto;
        max-height: 560px;
    }

    .iteration-shot figcaption {
        min-height: auto;
    }
}
