/* =============================================
   RESET & ROOT
   ============================================= */

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

:root {
    --bg:        #e8e8e8;
    --text:      #111111;
    --muted:     #888888;
    --border:    rgba(0, 0, 0, 0.12);
    --pad-x:     48px;
    --nav-h:     68px;
    --sidebar-w: 160px;

    /* Toggle */
    --toggle-track:  rgba(0, 0, 0, 0.15);
    --toggle-dot:    #111111;
}

[data-theme="dark"] {
    --bg:      #111111;
    --text:    #e8e8e8;
    --muted:   #666666;
    --border:  rgba(255, 255, 255, 0.1);

    /* Toggle */
    --toggle-track:  rgba(255, 255, 255, 0.15);
    --toggle-dot:    #e8e8e8;
}

html {
    scroll-behavior: smooth;
    transition: background 0.35s ease, color 0.35s ease;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */

.cursor {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: multiply;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease;
}

body.cursor-hover .cursor {
    width: 56px;
    height: 56px;
    opacity: 0.6;
}

/* =============================================
   NAV
   ============================================= */

.nav {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--nav-h);
    padding: 0 var(--pad-x);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--bg);
    z-index: 400;
    transition: background 0.35s ease;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    transition: opacity 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Theme toggle — single button */
.theme-toggle {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    border: none;
    background: rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    cursor: none;
    transition: background 0.35s ease, opacity 0.2s ease;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    opacity: 0.65;
}

.theme-state {
    display: none;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.35s ease;
}

/* Light mode → show sun + "Light" */
.theme-state--light { display: flex; }
.theme-state--dark  { display: none;  }

/* Dark mode → show moon + "Dark" */
[data-theme="dark"] .theme-state--light { display: none;  }
[data-theme="dark"] .theme-state--dark  { display: flex; }

/* =============================================
   HERO
   ============================================= */

.hero {
    height: 100vh;
    padding: 0 var(--pad-x);
    padding-top: var(--nav-h);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---- Upper row ---- */

.hero-upper {
    flex: 1;
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: start;
    padding-top: 28px;
    min-height: 0;
}

/* Hero image */
.hero-image {
    width: 260px;
    height: 300px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

/* Middle annotation */
.hero-mid {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

/* Text */
.hero-text {
    padding-top: 4px;
}

.hero-quote {
    border: none;
    padding: 0;
    max-width: 380px;
    position: relative;
}

.hero-quote-mark {
    display: block;
    font-size: 48px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--text);
    opacity: 0.25;
    margin-bottom: -10px;
    user-select: none;
}

.hero-quote-mark--close {
    margin-bottom: 0;
    margin-top: -14px;
    text-align: right;
}

.hero-quote p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
    font-style: italic;
}

.hero-quote-cite {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
}

/* Bracket numbers */
.bracket-num {
    font-size: 12px;
    font-weight: 400;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* ---- Lower row ---- */

.hero-lower {
    display: flex;
    align-items: flex-end;
    margin: 0 calc(-1 * var(--pad-x));
}

.hero-lower-left {
    width: calc(var(--pad-x) + 260px + 80px);
    padding-left: var(--pad-x);
    padding-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
}

.scroll-indicator {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text);
}

.hero-lower-divider {
    width: 1px;
    height: 180px;
    background: var(--text);
    flex-shrink: 0;
    align-self: flex-end;
}

.hero-lower-right {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* The giant word */
.display-word {
    display: block;
    font-size: clamp(90px, 15.5vw, 210px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.025em;
    color: var(--text);
    padding-left: 28px;
}

/* Sub-row below the word */
.display-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 10px 28px 28px 28px;
}

.display-slashes {
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.05em;
}

.display-sub {
    font-size: 12px;
    color: var(--text);
    letter-spacing: 0.08em;
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */

section:not(.hero) {
    padding: 90px var(--pad-x);
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.section-label h2 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.section-desc {
    font-size: 13px;
    color: var(--muted);
}

/* =============================================
   IMAGE PLACEHOLDERS (dark gradient fills)
   Replace with real <img> tags
   ============================================= */

.img-dark {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg,
        #1a1a1a 0%,
        #3c3c3c 30%,
        #111111 60%,
        #2e2e2e 100%
    );
}

.img-dark--2 {
    background: linear-gradient(160deg,
        #252525 0%,
        #484848 35%,
        #1c1c1c 70%,
        #363636 100%
    );
}

.img-dark--3 {
    background: linear-gradient(120deg,
        #2a2a2a 0%,
        #404040 40%,
        #181818 80%,
        #303030 100%
    );
}

.img-dark--4 {
    background: linear-gradient(200deg,
        #1e1e1e 0%,
        #444444 45%,
        #141414 100%
    );
}

.img-dark--5 {
    background: linear-gradient(170deg,
        #303030 0%,
        #1a1a1a 50%,
        #3a3a3a 100%
    );
}

.img-dark--6 {
    background: linear-gradient(110deg,
        #202020 0%,
        #3e3e3e 50%,
        #161616 100%
    );
}

.img-dark--7 {
    background: linear-gradient(140deg,
        #282828 0%,
        #424242 40%,
        #1e1e1e 100%
    );
}

/* =============================================
   PAGE LAYOUT
   ============================================= */

.page-main {
    margin-left: var(--sidebar-w);
}

/* =============================================
   SIDEBAR
   ============================================= */

.portfolio-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    padding: 40px 28px;
    border-right: 1px solid var(--border);
    background: var(--bg);
    z-index: 500;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: background 0.35s ease;
}

.sidebar-logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 32px;
    display: block;
}

.sidebar-page-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-page-nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    padding: 6px 0;
    transition: color 0.2s;
}

.sidebar-page-nav a:hover,
.sidebar-page-nav a.active {
    color: var(--text);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-item {
    display: block;
    text-align: left;
    background: none;
    border: none;
    padding: 7px 0 7px 16px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: none;
    position: relative;
    transition: color 0.2s;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1px;
    background: var(--text);
    opacity: 0;
    transition: opacity 0.2s, width 0.2s;
}

.sidebar-item:hover {
    color: var(--text);
}

.sidebar-item.active {
    color: var(--text);
}

.sidebar-item.active::before {
    opacity: 1;
    width: 8px;
}

/* =============================================
   PORTFOLIO
   ============================================= */

.portfolio-main {
    width: 100%;
}

/* Filtered-out items */
.p-item {
    transition: opacity 0.35s ease;
}

.p-item.p-hidden {
    opacity: 0.07 !important;
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 2px;
}

.p-item {
    position: relative;
    overflow: hidden;
    cursor: none;
}

.p-item .img-dark {
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-item:hover .img-dark {
    transform: scale(1.06);
}

/* Tall: spans 2 rows */
.p-tall {
    grid-row: span 2;
}

/* Wide: spans 2 columns */
.p-wide {
    grid-column: span 2;
}

/* Overlay label */
.p-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.55) 0%,
        transparent 100%
    );
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.p-item:hover .p-overlay {
    opacity: 1;
    transform: translateY(0);
}

.p-num {
    font-size: 11px;
    opacity: 0.7;
}

.p-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* =============================================
   CONTACT
   ============================================= */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.contact-intro {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 52px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.contact-item a,
.contact-item span:not(.contact-label) {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-item a:hover {
    opacity: 0.5;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input:focus {
    border-bottom-color: var(--text);
}

.form-input::placeholder {
    color: var(--muted);
}

.form-textarea {
    resize: none;
    min-height: 100px;
    margin-top: 8px;
}

.form-btn {
    align-self: flex-start;
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    transition: opacity 0.2s, transform 0.2s;
}

.form-btn:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

.form-btn-arrow {
    transition: transform 0.2s;
}

.form-btn:hover .form-btn-arrow {
    transform: translateX(4px);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.footer-copy {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* =============================================
   GALLERY PAGE
   ============================================= */

.gallery-wrap {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-header {
    height: var(--nav-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad-x);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.35s ease;
}

.gallery-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gallery-back {
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.gallery-back:hover {
    color: var(--text);
}

.gallery-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-counter {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    text-align: right;
}

.gallery-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text);
    cursor: none;
    padding: 6px 8px;
    line-height: 1;
    transition: opacity 0.2s;
}

.gallery-nav-btn:hover {
    opacity: 0.4;
}

.gallery-viewer {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    overflow: hidden;
}

.gallery-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px var(--pad-x);
    overflow: hidden;
}

/* Info panel */
.gallery-info {
    border-left: 1px solid var(--border);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}

.gallery-info::-webkit-scrollbar {
    display: none;
}

.gallery-info-word {
    /* Panel is 300px, padding 32px each side = 236px content.
       "moment" in Inter 900 ≈ 3.6× font-size → max safe ≈ 56px.
       overflow: hidden on parent acts as the safety net. */
    font-size: clamp(28px, 3.5vw, 56px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 32px;
    white-space: nowrap;
}

.gallery-info-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 28px;
}

.gallery-info-desc {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    flex: 1;
}

.gallery-info-meta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-info-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.gallery-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.18s ease;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.gallery-img.fading {
    opacity: 0;
}

.gallery-thumbs {
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 var(--pad-x);
    overflow-x: auto;
    border-top: 1px solid var(--border);
    background: var(--bg);
    scrollbar-width: none;
    transition: background 0.35s ease;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: none;
    padding: 0;
    background: none;
    overflow: hidden;
    cursor: none;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: none;
    padding: 8px;
    line-height: 0;
    transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Make images feel clickable */
.story-img img,
.p-item img {
    cursor: zoom-in;
}

/* Portfolio items with real images */
.p-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-item:hover img {
    transform: scale(1.06);
}

/* ── Image protection ───────────────────────────────────────────────
   1. Disable browser drag on all photos
   2. Transparent overlay sits above the img — right-clicking it shows
      a generic div context menu (no "Save Image As"), dragging grabs
      the div (not the img file)
   ─────────────────────────────────────────────────────────────────── */

.story-img img,
.p-item img,
.hero-image img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;   /* overlay handles all mouse events */
}

/* The overlay itself */
.story-img::after,
.p-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: zoom-in;
}

/* Keep the hover label above the protection overlay */
.p-overlay {
    z-index: 2;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    :root {
        --pad-x: 32px;
    }

    .display-word {
        font-size: clamp(72px, 14vw, 160px);
    }
}

@media (max-width: 768px) {
    :root {
        --pad-x:     24px;
        --nav-h:     60px;
        --sidebar-w: 0px;
    }

    /* Hide sidebar on mobile */
    .portfolio-sidebar {
        display: none;
    }

    /* Restore full-width nav on mobile */
    .nav {
        left: 0;
        justify-content: space-between;
    }

    .page-main {
        margin-left: 0;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-dot {
        display: none;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: var(--nav-h);
    }

    .hero-upper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 24px;
        padding-top: 24px;
    }

    .hero-mid {
        justify-content: flex-start;
    }

    .hero-text {
        padding-top: 0;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-lower {
        flex-direction: column;
        align-items: flex-start;
        margin: 24px 0 0;
    }

    .hero-lower-left {
        width: 100%;
        padding-left: 0;
        padding-bottom: 16px;
    }

    .hero-lower-divider {
        display: none;
    }

    .hero-lower-right {
        width: 100%;
    }

    .display-word {
        font-size: clamp(60px, 18vw, 120px);
        padding-left: 0;
    }

    .display-foot {
        padding-left: 0;
        padding-right: 0;
    }

    /* Gallery */
    .gallery-viewer {
        grid-template-columns: 1fr;
    }

    .gallery-info {
        display: none;
    }

    .gallery-img-wrap {
        padding: 16px var(--pad-x);
    }

    .gallery-thumbs {
        height: 88px;
    }

    .gallery-thumb {
        width: 56px;
        height: 56px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .p-wide {
        grid-column: span 2;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-intro {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --pad-x: 20px;
    }

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

    .p-tall,
    .p-wide {
        grid-row: span 1;
        grid-column: span 1;
    }
}
