/* ========================================
   01. Design Tokens / Base
   ======================================== */

:root {
    --ink: #1d2926;
    --muted: #6b756e;
    --paper: #e9eee9;
    --paper-deep: #dce5de;
    --line: rgba(29, 41, 38, 0.18);
    --accent: #b36d3d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: inherit;
}

figure {
    margin: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.94;
}

h1 em,
h2 em {
    color: #efb18d;
    font-weight: 400;
}

/* ========================================
   02. Navigation
   ======================================== */

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 82px;
    padding: 0 5vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(16, 25, 22, 0.46);
    color: #fff;
    box-shadow: 0 8px 28px rgba(8, 14, 12, 0.12);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    transition: min-height 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
    transition: transform 0.12s linear;
}

.site-header .logo,
.site-header .desktop-nav a,
.site-header .header-link,
.site-header .menu-button {
    color: #fff;
}

.site-header .desktop-nav a:hover,
.site-header .header-link:hover,
.site-header .logo:hover {
    color: #f0c1a0;
}

.site-header .logo.is-active,
.site-header .desktop-nav a.is-active {
    color: #f0c1a0;
}

body.is-scrolled .site-header {
    min-height: 68px;
    background: rgba(16, 25, 22, 0.78);
    box-shadow: 0 10px 32px rgba(8, 14, 12, 0.22);
}

.logo {
    width: fit-content;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.logo span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    gap: 34px;
}

.desktop-nav a,
.header-link {
    font-size: 16px;
    text-decoration: none;
}

.header-link {
    justify-self: end;
}

.header-link span {
    margin-left: 8px;
    color: var(--accent);
    font-size: 18px;
}

.menu-button,
.mobile-menu {
    display: none;
}

/* ========================================
   03. Hero
   ======================================== */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    padding: 160px 8vw 92px;
    overflow: hidden;
    background: var(--ink);
    color: #f3f4ed;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 25, 23, 0.86) 0%, rgba(17, 25, 23, 0.52) 48%, rgba(17, 25, 23, 0.16) 82%),
        linear-gradient(0deg, rgba(17, 25, 23, 0.72) 0%, rgba(17, 25, 23, 0.08) 62%, transparent 100%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero .eyebrow {
    color: #f3f4ed;
    text-shadow: 0 2px 12px rgba(10, 16, 14, 0.72);
}

.eyebrow {
    margin: 0 0 28px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    max-width: 900px;
    margin-bottom: 34px;
    font-size: clamp(66px, 7vw, 180px);
}

.hero-intro {
    max-width: 440px;
    color: #f3f4ed;
    font-size: 18px;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(10, 16, 14, 0.72);
}

.hero-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: 0;
    transform: translateY(var(--hero-shift, 0px)) scale(1.04);
    transition: transform 0.15s linear;
}

.circle-link {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-top: 54px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.circle-link:hover {
    transform: translateY(5px);
    background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   04. Statement
   ======================================== */

.statement {
    position: relative;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 6vw;
    align-items: center;
    min-height: 100svh;
    padding: 7vw 8vw;
    background: var(--paper);
}

.statement::before,
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 8vw;
    left: 8vw;
    height: 1px;
    background: var(--line);
}

.statement-copy,
.material-copy-text {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 28px;
    margin-top: 34px;
}

h2 {
    font-size: clamp(48px, 5vw, 132px);
}

.statement-copy>p,
.material-copy-text>p {
    margin: 0;
    color: var(--muted);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px !important;
    font-weight: 400;
    line-height: 1.75;
}

.statement-copy .statement-detail,
.material-copy-text .material-note {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.statement-image {
    height: min(52vw, 62vh, 620px);
}

.statement-image img,
.material-landscape img,
.material-portrait img {
    transform: scale(1);
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.statement-image:hover img,
.material-landscape:hover img,
.material-portrait:hover img {
    transform: scale(1.045);
}

.statement-image,
.material-landscape,
.material-portrait {
    position: relative;
    overflow: hidden;
}

.statement-image.is-visible img,
.material-landscape.is-visible img,
.material-portrait.is-visible img {
    transform: scale(1);
}

.statement-copy>p,
.material-copy-text>p {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    will-change: opacity, transform;
    backface-visibility: hidden;
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.statement-copy>p:nth-child(2),
.material-copy-text>p:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal.is-visible .statement-copy>p,
.reveal.is-visible .material-copy-text>p {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes indicator-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
    }
}

.circle-link {
    animation: indicator-pulse 3.8s ease-in-out infinite;
}

/* ========================================
   05. Projects
   ======================================== */

.projects {
    min-height: 100svh;
    padding: 6vw 8vw;
    background: var(--paper-deep);
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 5vw;
}

.projects-heading>p {
    max-width: 420px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 6vw;
    align-items: center;
}

.project-feature figure {
    position: relative;
    height: min(43vw, 52vh, 520px);
    overflow: hidden;
}

.project-feature img {
    clip-path: inset(0 100% 0 0);
    transform: scale(1.04);
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-feature.is-visible img {
    animation: project-image-reveal 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
    transform: scale(1) !important;
}

@keyframes project-image-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.project-meta>span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-meta h3 {
    margin: 20px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.project-meta>p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

dl {
    margin: 48px 0 0;
    border-top: 1px solid var(--line);
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    font-weight: 600;
}

/* ========================================
   06. Material Story
   ======================================== */

.material-section {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr) minmax(0, 0.85fr);
    gap: 3vw;
    align-items: center;
    min-height: 100svh;
    padding: 7vw 8vw;
    background: var(--paper);
}

.material-copy h2 {
    margin-bottom: 32px;
    line-height: 1.0;
}

.material-landscape {
    align-self: start;
    height: min(30vw, 36vh, 360px);
    margin-top: 6vw;
}

.material-portrait {
    align-self: start;
    height: min(46vw, 60vh, 620px);
    margin-top: 0;
}

/* ========================================
   07. Contact / Footer
   ======================================== */

.contact {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.45fr;
    gap: 5vw;
    align-items: center;
    min-height: 100svh;
    padding: 10vw 8vw;
    background: var(--ink);
    color: #f3f4ed;
}

.contact::before {
    background: rgba(255, 255, 255, 0.2);
}

.contact-content h2 {
    max-width: 700px;
}

.contact-intro {
    max-width: 500px;
    margin: 30px 0 34px;
    color: #b7c0b9;
    font-size: 18px;
    line-height: 1.7;
}

.contact-link {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--accent);
    color: #fff;
    font-size: clamp(22px, 2.5vw, 36px);
    text-decoration: none;
}

.contact-link span {
    color: #d79c75;
}

.contact-note {
    justify-self: end;
    color: #9ca9a0;
    font-size: 11px;
    line-height: 1.7;
    text-align: right;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--ink);
    color: #9ca9a0;
    font-size: 12px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* ========================================
   08. iPad / Tablet Landscape
   ======================================== */

@media (min-width: 801px) and (max-width: 1100px) {
    .site-header {
        min-height: 76px;
    }

    .logo {
        font-size: 16px;
    }

    .logo span {
        font-size: 9px;
    }

    .desktop-nav {
        gap: 22px;
    }

    .desktop-nav a,
    .header-link {
        font-size: 13px;
    }

    .hero {
        padding: 130px 6vw 72px;
    }

    h1 {
        max-width: 620px;
        font-size: clamp(62px, 8vw, 96px);
    }

    .hero-intro {
        max-width: 390px;
        font-size: 17px;
    }

    .statement,
    .material-section,
    .contact {
        height: auto;
    }

    .statement {
        gap: 5vw;
        padding: 72px 6vw;
        min-height: min(100svh, 1150px);
    }

    .statement-image {
        height: 46vh;
    }



    .projects {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: min(100svh, 1150px);
        padding: 72px 6vw;
    }

    .projects-heading {
        margin-bottom: 54px;
    }

    .projects-heading>p {
        max-width: 360px;
        font-size: 16px;
    }

    .project-feature {
        gap: 4vw;
    }

    .project-feature figure {
        height: 44vh;
    }

    .project-meta>p {
        font-size: 16px;
    }

    dl {
        margin-top: 28px;
    }

    .material-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
        gap: 2.5vw;
        padding: 72px 6vw;
        min-height: min(100svh, 1150px);
    }

    .material-landscape {
        height: 28vh;
        margin-top: 8vw;
    }

    .material-portrait {
        height: 48vh;
    }

    .contact {
        grid-template-columns: 1fr 0.4fr;
        padding: 72px 6vw;
    }

    .contact-intro {
        max-width: 440px;
        font-size: 17px;
    }
}

/* ========================================
   09. iPad Portrait Material Composition
   ======================================== */

@media (min-width: 801px) and (max-width: 1100px) and (orientation: portrait) {
    .material-section {
        position: relative;
        display: block;
        min-height: min(100svh, 1150px);
        overflow: hidden;
    }

    .material-copy {
        position: relative;
        z-index: 3;
        max-width: 53%;
    }

    .material-landscape {
        position: absolute;
        z-index: 2;
        top: 50%;
        right: auto;
        left: 48%;
        width: 70%;
        height: 40%;
        margin: 0;
        transform: translateX(-50%);
    }

    .material-portrait {
        position: absolute;
        z-index: 1;
        top: 14%;
        right: 6%;
        width: 31%;
        height: 42%;
        margin: 0;
    }
    
    .contact {
        min-height: min(100svh, 1150px);
    }
}

/* ========================================
   10. Mobile
   ======================================== */

@media (max-width: 800px) {
    .site-header {
        grid-template-columns: 1fr auto;
        min-height: 70px;
        padding: 0 24px;
    }

    .desktop-nav,
    .header-link {
        display: none;
    }

    .menu-button {
        display: block;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font: inherit;
        font-size: 12px;
    }

    .mobile-menu {
        position: fixed;
        z-index: 9;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 24px;
        background: var(--ink);
        color: #fff;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .mobile-menu.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-menu a {
        font-size: 12vw;
        letter-spacing: -0.06em;
        text-decoration: none;
    }

    .hero {
        padding: 130px 24px 72px;
    }

    h1 {
        font-size: clamp(58px, 17vw, 86px);
    }

    .hero-background {
        transform: none;
    }

    .hero-background img {
        object-position: 62% center;
    }

    .statement,
    .contact {
        grid-template-columns: 1fr;
        height: auto;
        gap: 36px;
        padding: 88px 24px;
    }

    .statement::before,
    .contact::before {
        right: 24px;
        left: 24px;
    }

    .statement-copy,
    .material-copy-text {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 28px;
    }

    .statement-copy .statement-detail,
    .material-copy-text .material-note {
        padding-top: 24px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .statement-image {
        height: 124vw;
    }

    .projects {
        height: auto;
        padding: 90px 24px 110px;
    }

    .projects-heading {
        display: block;
        margin-bottom: 60px;
    }

    .projects-heading>p {
        margin-top: 30px;
    }

    .project-feature {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .project-feature figure {
        height: 82vw;
    }

    .material-section {
        grid-template-columns: 1fr;
        height: auto;
        gap: 36px;
        padding: 88px 24px;
    }

    .material-landscape {
        order: 2;
        height: 62vw;
        margin-top: 0;
    }

    .material-portrait {
        order: 1;
        height: 84vw;
        margin: 0;
    }

    .material-landscape {
        margin-top: -18vw;
        z-index: 2;
    }

    .material-landscape.is-visible img {
        transform: scale(0.92);
        object-position: center;
    }

    .contact-note {
        justify-self: start;
        text-align: left;
    }

    .site-footer {
        flex-wrap: wrap;
        padding: 28px 24px;
    }
}

/* ========================================
   10. Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}