:root {
    --ink: #101820;
    --ink-soft: #334155;
    --paper: #f7f7f2;
    --paper-deep: #ecece4;
    --white: #ffffff;
    --blue: #155bd7;
    --blue-dark: #0b3f9d;
    --blue-soft: #eaf1ff;
    --signal: #f4c84a;
    --line: #d7d9d5;
    --line-dark: #323c47;
    --project: #155bd7;
    --practice: #a45d00;
    --support: #5b3db5;
    --radius: 14px;
    --header-height: 72px;
    --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
}

body.overflow-hidden-mobile { overflow: hidden; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

::selection { color: var(--white); background: var(--blue); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { border: 2px solid var(--paper-deep); border-radius: 10px; background: #8b949c; }

a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.skip-link {
    position: fixed;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    z-index: 999;
    translate: 0 -150%;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    transition: translate 160ms var(--ease);
}
.skip-link:focus { translate: 0; }

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(16, 24, 32, 0.12);
    background: rgba(247, 247, 242, 0.94);
    backdrop-filter: blur(14px);
}
.site-header__inner {
    width: min(1180px, calc(100% - 40px));
    height: var(--header-height);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.wordmark {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.wordmark__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.desktop-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.desktop-nav a,
.header-contact {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: 14px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 5px;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="location"] { color: var(--blue); background: var(--blue-soft); }
.header-contact { padding-inline: 18px; background: var(--ink); color: var(--white); }
.header-contact:hover { background: var(--blue); }
.menu-button {
    width: 48px;
    height: 48px;
    margin-inline-start: auto;
    display: none;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}
.mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 45;
    padding: 32px 20px;
    background: var(--ink);
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); }
.mobile-nav a {
    min-height: 62px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    color: var(--white);
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    font-weight: 700;
    text-decoration: none;
}

.hero-section { padding: clamp(56px, 8vw, 112px) 20px clamp(72px, 10vw, 136px); overflow: hidden; }
.hero-layout {
    width: min(1180px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: center;
    gap: clamp(44px, 7vw, 104px);
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6.2vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}
.hero-copy h1 span { display: block; white-space: nowrap; }
.hero-lede,
.hero-current {
    max-width: 68ch;
    margin: 30px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
}
.hero-current { margin-block-start: 14px; font-size: 0.95rem; }
.hero-actions { margin-block-start: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.button--primary { background: var(--blue); color: var(--white); }
.button--primary:hover { background: var(--blue-dark); }
.button--secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button--secondary:hover { border-color: var(--ink); background: var(--white); }
.profile-facts {
    margin: 42px 0 0;
    padding-block-start: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border-top: 1px solid var(--line);
}
.profile-facts div { min-width: 0; }
.profile-facts dt {
    color: #626d78;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.profile-facts dd { margin: 6px 0 0; font-size: 0.78rem; font-weight: 700; line-height: 1.55; }
.hero-artifact { margin: 0; }
.hero-artifact__frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 26px 70px rgba(16, 24, 32, 0.18);
}
.hero-artifact__frame > img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.artifact-path {
    position: absolute;
    inset-inline: 18px;
    inset-block-end: 18px;
    min-height: 50px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.artifact-path i { height: 1px; flex: 1; background: var(--signal); }
.hero-artifact figcaption { padding: 18px 4px 0; display: grid; gap: 4px; }
.hero-artifact figcaption span { color: var(--blue); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-artifact figcaption strong { font-size: 1rem; }
.hero-artifact figcaption small { color: var(--ink-soft); font-size: 0.78rem; }

.section { padding: clamp(84px, 10vw, 140px) 20px; }
.section--paper { background: var(--white); }
.section--sand { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: var(--white); }
.section-shell { width: min(1180px, 100%); margin-inline: auto; }
.section-shell--narrow { width: min(900px, 100%); }
.section-heading { margin-block-end: clamp(44px, 7vw, 80px); }
.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.62fr);
    align-items: end;
    gap: 48px;
}
.section-heading h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.05;
    text-wrap: balance;
}
.section-heading p { max-width: 62ch; margin: 0; color: #5f6974; }
.section--ink .section-heading p { color: #b7c0ca; }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.featured-project {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}
.featured-project--lead {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: none;
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.featured-project__image {
    min-height: 280px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #dfe3e6;
    cursor: pointer;
}
.featured-project__image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: filter 180ms var(--ease);
}
.featured-project__image:hover img { filter: saturate(0.8) contrast(1.04); }
.featured-project__body { min-width: 0; padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; }
.featured-project__index { display: flex; justify-content: space-between; gap: 20px; color: #6a7580; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.featured-project--lead .featured-project__index { color: #aeb7c0; }
.featured-project h3 { margin: 18px 0 0; font-size: clamp(1.5rem, 3vw, 2.45rem); line-height: 1.18; letter-spacing: -0.025em; }
.featured-project__summary { margin: 14px 0 0; color: #5b6570; font-size: 0.94rem; }
.featured-project--lead .featured-project__summary { color: #ccd3da; }
.project-brief { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.featured-project--lead .project-brief { border-color: var(--line-dark); }
.project-brief > div { padding-block: 13px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.featured-project--lead .project-brief > div { border-color: var(--line-dark); }
.project-brief dt { color: #626d78; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.featured-project--lead .project-brief dt { color: #99a4ae; }
.project-brief dd { margin: 0; font-size: 0.78rem; font-weight: 600; line-height: 1.6; }
.featured-project__metrics { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 16px 28px; }
.featured-project__metrics div { display: flex; flex-direction: column-reverse; }
.featured-project__metrics dt { color: #626d78; font-size: 0.7rem; }
.featured-project--lead .featured-project__metrics dt { color: #99a4ae; }
.featured-project__metrics dd { margin: 0; font-size: 0.96rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.text-link {
    min-height: 44px;
    width: fit-content;
    margin-block-start: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}
.featured-project--lead .text-link { color: var(--signal); }

.experience-list { border-top: 1px solid var(--line-dark); }
.experience-item {
    padding-block: clamp(30px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
    gap: 42px;
    border-bottom: 1px solid var(--line-dark);
}
.experience-item__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; color: #aeb7c0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.experience-item h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.25; }
.experience-item p { max-width: 68ch; margin: 12px 0 0; color: #c2cad2; }
.experience-item a { min-height: 44px; width: fit-content; margin-block-start: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.skill-key { margin-block: -38px 52px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: #56616d; font-size: 0.74rem; font-weight: 700; }
.skill-key span { display: inline-flex; align-items: center; gap: 8px; }
.skill-key__dot,
.skill-row__title > i { width: 9px; height: 9px; border-radius: 50%; background: var(--project); }
.skill-key__dot--practice,
.skill-row--practice .skill-row__title > i { background: var(--practice); }
.skill-key__dot--support,
.skill-row--support .skill-row__title > i { background: var(--support); }
.skills-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; }
.skill-group { min-width: 0; }
.skill-group > h3 { margin: 0 0 14px; padding-block-end: 14px; display: flex; align-items: center; gap: 11px; border-bottom: 2px solid var(--ink); font-size: 1.06rem; }
.skill-group > h3 i { color: var(--blue); }
.skill-group ul { margin: 0; padding: 0; list-style: none; }
.skill-row { padding-block: 19px; border-bottom: 1px solid #cfd1ca; }
.skill-row__title { display: flex; align-items: baseline; gap: 10px; }
.skill-row__title > i { flex: 0 0 auto; }
.skill-row h4 { margin: 0; font-size: 0.92rem; }
.skill-row p { margin: 7px 0 0 19px; color: #59646f; font-size: 0.8rem; line-height: 1.7; }
.skill-evidence-list { margin: 11px 0 0 19px; display: flex; flex-wrap: wrap; gap: 7px; }
.skill-evidence {
    min-height: 44px;
    padding: 9px 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #bfc5ca;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.skill-evidence:hover { border-color: var(--blue); color: var(--blue); background: var(--white); }

.history-disclosure { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.history-disclosure summary { min-height: 88px; padding-block: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.history-disclosure summary::-webkit-details-marker { display: none; }
.history-disclosure summary::after { content: "+"; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.35rem; }
.history-disclosure[open] summary::after { content: "−"; }
.history-disclosure summary span { font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 800; }
.history-disclosure summary small { margin-inline-start: auto; color: #64707b; }
.timeline-list { padding-block: 18px 70px; }
.timeline-year { display: grid; grid-template-columns: 100px 1fr; gap: 28px; }
.timeline-year + .timeline-year { margin-block-start: 48px; }
.timeline-year > h3 { margin: 0; color: var(--blue); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.timeline-item { padding-block: 22px; display: grid; grid-template-columns: 64px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.timeline-item time { color: #626d78; font-size: 0.73rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline-item h4 { margin: 0; font-size: 1rem; }
.timeline-item p { max-width: 70ch; margin: 7px 0 0; color: #58636e; font-size: 0.82rem; }
.timeline-actions { margin-block-start: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.timeline-actions a,
.timeline-actions button { min-height: 44px; padding: 9px 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; text-decoration: none; cursor: pointer; }

.archive-section { padding-block-start: 76px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.archive-project { min-width: 0; display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.archive-project__image { min-height: 220px; padding: 0; border: 0; background: #e6e8e8; cursor: pointer; }
.archive-project__image img { width: 100%; height: 100%; object-fit: cover; }
.archive-project__body { min-width: 0; padding: 22px; display: flex; flex-direction: column; }
.archive-project__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.archive-project h3 { margin: 0; font-size: 1.03rem; line-height: 1.35; }
.archive-project time { color: #727b84; font-size: 0.66rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.archive-project__body > p { margin: 10px 0 0; color: #5f6974; font-size: 0.76rem; line-height: 1.65; }
.archive-project__tags { margin-block-start: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.archive-project__tags span { padding: 4px 7px; border-radius: 6px; background: var(--paper-deep); color: #55606a; font-size: 0.62rem; font-weight: 800; }
.archive-project__actions { margin-block-start: auto; padding-block-start: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.archive-project__actions button,
.archive-project__actions a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--blue); font-size: 0.73rem; font-weight: 800; cursor: pointer; }
.archive-project__actions a { width: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); text-decoration: none; }

.contact-section { padding: clamp(88px, 11vw, 150px) 20px; background: var(--blue); color: var(--white); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr); align-items: end; gap: 70px; }
.contact-layout h2 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 5.4rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; }
.contact-layout h2 span { display: block; white-space: nowrap; }
.contact-layout p { max-width: 58ch; margin: 24px 0 0; color: #dce8ff; }
.contact-actions { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.contact-link { min-height: 82px; padding-block: 17px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); text-decoration: none; }
.contact-link span,
.contact-link strong { grid-column: 1; }
.contact-link span { color: #dce8ff; font-size: 0.72rem; }
.contact-link strong { overflow-wrap: anywhere; font-size: 0.92rem; }
.contact-link i { grid-column: 2; grid-row: 1 / 3; }
.contact-link:hover { color: var(--signal); }
.site-footer { min-height: 90px; padding: 20px max(20px, calc((100% - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: #aeb7c0; font-size: 0.76rem; }
.site-footer p { margin: 0; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; }

.project-dialog {
    width: min(1080px, calc(100% - 36px));
    max-width: none;
    height: min(92dvh, 980px);
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.project-dialog::backdrop { background: rgba(16, 24, 32, 0.74); backdrop-filter: blur(5px); }
.project-dialog__panel { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.project-dialog__header { position: sticky; inset-block-start: 0; z-index: 2; min-height: 64px; padding-inline: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.project-dialog__header > span { max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5b6570; font-size: 0.78rem; font-weight: 700; }
.dialog-close { min-height: 44px; padding: 0; display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: var(--ink); font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.project-dialog__content { padding: clamp(22px, 5vw, 58px); }
.project-dialog__content > #modal-image { width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; background: var(--paper-deep); }
.project-dialog__intro { margin-block-start: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 30px; }
#modal-date { color: var(--blue); font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
#modal-title { max-width: 20ch; margin: 8px 0 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; }
.project-dialog__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-dialog__links a { min-height: 44px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; background: var(--ink); color: var(--white); font-size: 0.74rem; font-weight: 800; text-decoration: none; }
.project-metrics { margin-block-start: 34px; display: flex; flex-wrap: wrap; gap: 18px 42px; border-block: 1px solid var(--line); padding-block: 22px; }
.project-metrics div { display: flex; flex-direction: column-reverse; }
.project-metrics dt { color: #66717c; font-size: 0.7rem; }
.project-metrics dd { margin: 0; font-size: 1.15rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.project-tags { padding-block: 20px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.project-tags > div { display: grid; grid-template-columns: 60px 1fr; gap: 14px; }
.project-tags strong { color: #68727c; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.project-tags div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span { padding: 3px 7px; border-radius: 6px; background: var(--paper-deep); font-size: 0.7rem; font-weight: 700; }
.project-copy { max-width: 74ch; margin-block-start: 46px; }
.project-copy section + section { margin-block-start: 40px; }
.project-copy h3 { margin: 0 0 10px; font-size: 1.18rem; }
.project-copy p { margin: 0; color: #46515c; }
.project-copy > p + p { margin-block-start: 20px; }
.project-gallery { margin-block-start: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.project-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--paper-deep); }
.project-gallery figcaption { padding: 14px; color: #5c6671; font-size: 0.72rem; }

/* Large-screen density: keep the visual hierarchy while showing more context at once. */
@media (min-width: 1200px) {
    .site-header__inner,
    .hero-layout,
    .section-shell { width: min(1240px, calc(100% - 56px)); }

    .hero-section { padding: 68px 28px 84px; }
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
        gap: 72px;
    }
    .hero-copy h1 {
        font-size: 4rem;
        line-height: 1;
    }
    .hero-lede,
    .hero-current { max-width: 62ch; }
    .hero-lede { margin-block-start: 24px; font-size: 1.03rem; }
    .hero-current { margin-block-start: 12px; font-size: 0.9rem; }
    .hero-actions { margin-block-start: 24px; }
    .profile-facts { margin-block-start: 30px; padding-block-start: 18px; }
    .hero-artifact__frame > img { aspect-ratio: 4 / 3; }
    .hero-artifact figcaption { padding-block-start: 14px; }

    .section { padding: 92px 28px; }
    .section-heading { margin-block-end: 48px; }
    .section-heading--split {
        grid-template-columns: minmax(0, 0.68fr) minmax(360px, 0.72fr);
        gap: 64px;
    }
    .section-heading h2 { font-size: 3.25rem; }

    .featured-grid { gap: 24px; }
    .featured-project--lead {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .featured-project__image { min-height: 230px; }
    .featured-project__body { padding: 30px 32px 32px; }
    .featured-project h3 { margin-block-start: 14px; font-size: 2rem; }
    .featured-project__summary { margin-block-start: 10px; font-size: 0.88rem; }
    .project-brief { margin-block-start: 20px; }
    .project-brief > div { padding-block: 10px; }
    .project-brief dd { line-height: 1.5; }
    .featured-project__metrics { margin-block-start: 18px; gap: 12px 24px; }
    .text-link { margin-block-start: 18px; }

    .experience-item { padding-block: 36px; }
    .experience-item h3 { font-size: 1.65rem; }
    .skills-list { gap: 20px 48px; }
    .skill-row { padding-block: 16px; }
    .archive-section { padding-block-start: 64px; }
    .archive-grid { gap: 20px; }
    .archive-project__image { min-height: 190px; }
    .archive-project__body { padding: 19px; }

    .contact-section { padding: 92px 28px; }
    .contact-layout h2 { font-size: 3.8rem; }
}

@media (max-width: 980px) {
    .desktop-nav, .header-contact { display: none; }
    .menu-button { display: grid; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-artifact { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr); align-items: end; gap: 24px; }
    .hero-artifact__frame > img { aspect-ratio: 4 / 3; }
    .section-heading--split, .contact-layout { grid-template-columns: 1fr; align-items: start; }
    .section-heading--split { gap: 24px; }
    .featured-project--lead { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .archive-project { grid-template-columns: 220px 1fr; }
}

@media (max-width: 720px) {
    :root { --header-height: 64px; }
    .site-header__inner { width: min(100% - 28px, 1180px); }
    .hero-section { padding-inline: 16px; }
    .hero-copy h1 { font-size: clamp(2.45rem, 13vw, 4.2rem); }
    .hero-lede { font-size: 1rem; }
    .hero-actions { display: grid; }
    .profile-facts { grid-template-columns: 1fr; gap: 14px; }
    .profile-facts div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; }
    .profile-facts dd { margin: 0; }
    .hero-artifact { display: block; }
    .hero-artifact figcaption { padding-block-start: 14px; }
    .section { padding-inline: 16px; }
    .section-heading h2 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
    .featured-grid, .skills-list { grid-template-columns: 1fr; }
    .featured-project { grid-template-columns: 1fr; }
    .featured-project__image { min-height: 220px; }
    .featured-project__body { padding: 24px 20px 28px; }
    .project-brief > div { grid-template-columns: 68px 1fr; }
    .experience-item { grid-template-columns: 1fr; gap: 16px; }
    .experience-item__meta { justify-content: flex-start; }
    .skill-key { margin-block-start: -26px; }
    .history-disclosure summary { align-items: flex-start; }
    .history-disclosure summary small { display: none; }
    .timeline-year { grid-template-columns: 1fr; gap: 8px; }
    .timeline-item { grid-template-columns: 56px 1fr; }
    .archive-project { grid-template-columns: 1fr; }
    .archive-project__image { min-height: 190px; max-height: 240px; }
    .contact-layout { gap: 44px; }
    .contact-layout h2 { font-size: 2.2rem; }
    .site-footer { align-items: flex-start; flex-direction: column; }
    .project-dialog { width: 100%; height: 100dvh; border-radius: 0; }
    .project-dialog__header { min-height: 60px; padding-inline: 16px; }
    .project-dialog__header > span { display: none; }
    .project-dialog__content { padding: 18px 16px 48px; }
    .project-dialog__content > #modal-image { max-height: 36dvh; }
    .project-dialog__intro { grid-template-columns: 1fr; gap: 20px; }
    .project-dialog__links { justify-content: flex-start; }
    .project-dialog__links a { flex: 1 1 auto; justify-content: center; }
    .project-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .wordmark__dot, .skill-key__dot, .skill-row__title > i { forced-color-adjust: none; }
}
