/* =========================
   COLOR PALETTE
   Change these values to
   adjust the entire page
========================= */

:root {
    --turquoise: #4895a8;
    --turquoise-light: #e9f0ef;

    --white: #ffffff;
    --black: #111111;

    --cream: #ffffff;

    --border: #c9ccc5;
}


/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family: Helvetica, Arial, sans-serif;
}

.page {
    width: 100%;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
    width: 100%;
    padding: 25px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.site-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--black);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links .active {
    color: var(--turquoise);
    text-decoration: underline;
}


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

.hero {
    min-height: 75vh;
    padding: 80px 6%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.eyebrow {
    color: var(--turquoise);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

h1 {
    font-family: "Abril Fatface", serif;
    color: var(--black);
    font-size: clamp(45px, 6vw, 85px);
    line-height: 0.98;
    margin: 0 0 30px;
}

.subtitle {
    font-size: 21px;
    line-height: 1.5;
    max-width: 550px;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 120px 10%;
    border-top: 1px solid var(--border);
}

.section-label {
    color: var(--turquoise);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 40px;
}

h2 {
    font-family: "Abril Fatface", serif;
    color: var(--black);
    font-size: clamp(35px, 4vw, 60px);
    line-height: 1.05;
    max-width: 850px;
    margin: 0 0 35px;
}

.body-text {
    max-width: 750px;
    font-size: 18px;
    line-height: 1.7;
}


/* =========================
   TWO COLUMN
========================= */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.image-box img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}


/* =========================
   PROCESS
========================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-item {
    border-top: 2px solid var(--turquoise);
    padding-top: 20px;
}

.process-item span {
    color: var(--turquoise);
    font-size: 13px;
    letter-spacing: 1px;
}

.process-item h3 {
    font-size: 23px;
    margin: 25px 0 15px;
}

.process-item p {
    font-size: 15px;
    line-height: 1.6;
}


/* =========================
   PHOTO GRID
========================= */

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.photo-grid figure {
    margin: 0;
}

.photo-grid figure.wide {
    grid-column: 1 / -1;
}

.photo-grid img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.photo-grid .wide img {
    height: 550px;
}

figcaption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   FINDINGS
========================= */

.findings {
    background: var(--turquoise-light);
}

.findings h2 {
    font-size: clamp(50px, 7vw, 100px);
}

.note {
    margin-top: 50px;
    font-size: 13px;
    font-style: italic;
    max-width: 600px;
}


/* =========================
   SKILLS
========================= */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
}

.skills span {
    border: 1px solid var(--turquoise);
    color: var(--black);
    padding: 12px 18px;
    font-size: 14px;
}


/* =========================
   PRESENTATION
========================= */

.presentation {
    background: var(--white);
}


/* =========================
   OUTPUTS
========================= */

.output {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 0;

    border-top: 1px solid var(--border);
}

.output:last-child {
    border-bottom: 1px solid var(--border);
}

.output h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.output p {
    margin: 0;
    font-size: 14px;
}

.output > span {
    color: var(--turquoise);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


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

footer {
    padding: 50px 6%;
    display: flex;
    justify-content: center;
    font-size: 20px;
}

footer a {
    color: var(--black);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

footer a:hover {
    color: var(--turquoise);
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 7%;
    }

    .hero-image img {
        height: 400px;
    }

    .section {
        padding: 80px 7%;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .photo-grid figure.wide {
        grid-column: auto;
    }

    .photo-grid img,
    .photo-grid .wide img {
        height: 350px;
    }

    .output {
        gap: 20px;
    }
}


@media (max-width: 500px) {

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

    h1 {
        font-size: 48px;
    }

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


/* =====================================================
   SHARED PORTFOLIO SIDEBAR
   Mirrors the sidebar used by index.html without importing
   style.css, so the research page's own hero/section styles
   remain untouched.
===================================================== */

:root {
    --sidebar-rail: 58px;
    --sidebar-full: 200px;
}

.side-nav {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: var(--sidebar-rail) !important;
    background: #e8ebea !important;
    border-right: 1px solid rgba(66, 82, 77, .12) !important;
    z-index: 6000 !important;
    overflow: hidden !important;
    transition: width .24s ease !important;
    pointer-events: auto !important;
}

.side-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    pointer-events: none;
    z-index: 0;
}

.side-nav.hover-open {
    width: var(--sidebar-full) !important;
}

.side-nav-inner {
    position: relative;
    z-index: 1;
    height: 100% !important;
    width: var(--sidebar-full) !important;
    padding: 24px 8px 28px !important;
    overflow: hidden !important;
}

.side-brand {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 0 56px 0 !important;
    color: #42524d;
    text-decoration: none;
    transform-origin: center center !important;
    transition: transform .18s ease !important;
}

.side-logo {
    width: 42px;
    height: 42px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.side-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 170px !important;
    padding-left: 14px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-8px) !important;
    transition: opacity .16s ease .04s, transform .2s ease !important;
    white-space: nowrap;
}

.side-nav.hover-open .side-links {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.side-nav-item {
    width: 100%;
    margin: 0 0 30px 0;
}

.side-nav-item:last-child {
    margin-bottom: 0;
}

.side-main-link,
.side-dropdown-toggle {
    width: 100%;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #42524d !important;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, transform .18s ease !important;
}

.side-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px;
}

.side-main-link:hover,
.side-dropdown-toggle:hover {
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

.side-dropdown-arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform .22s ease;
}

.side-dropdown.is-open .side-dropdown-arrow {
    transform: rotate(180deg);
}

.side-submenu-wrap {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .26s ease, opacity .18s ease, margin-top .26s ease;
    margin-top: 0;
}

.side-dropdown.is-open .side-submenu-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 13px;
}

.side-submenu {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-left: 12px;
}

.side-submenu a {
    display: block;
    color: #42524d !important;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 14px !important;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    opacity: .82;
    transition: color .16s ease, transform .18s ease, opacity .16s ease !important;
}

.side-submenu a:hover {
    color: #ffffff !important;
    opacity: 1;
    transform: translateX(4px) !important;
}

@media (hover:hover) and (pointer:fine) {
    .side-brand:hover {
        transform: scale(1.10) !important;
    }
}

@media (max-width: 900px) {
    .side-nav-item {
        margin-bottom: 24px;
    }

    .side-submenu {
        gap: 10px;
    }
}


/* =====================================================
   V2 — align research page styling with main portfolio
===================================================== */

:root{
    --turquoise:#4c6170 !important;
    --turquoise-light:#e8ebea !important;
    --black:#14253d !important;
}

/* Make all text approximately 6px larger than the original design */
body{
    font-size:22px;
}

.site-name{
    font-size:26px !important;
}

.nav-links a{
    font-size:21px !important;
}

.eyebrow{
    font-size:19px !important;
}

h1{
    font-size:clamp(51px, 6vw, 91px) !important;
}

.subtitle{
    font-size:27px !important;
}

.section-label{
    font-size:18px !important;
}

h2{
    font-size:clamp(41px, 4vw, 66px) !important;
}

.body-text{
    font-size:24px !important;
}

.process-item span{
    font-size:19px !important;
}

.process-item h3{
    font-size:29px !important;
}

.process-item p{
    font-size:21px !important;
}

figcaption{
    font-size:19px !important;
}

.note{
    font-size:19px !important;
}

.skills span{
    font-size:20px !important;
}

.output h3{
    font-size:25px !important;
}

.output p{
    font-size:20px !important;
}

.output > span{
    font-size:18px !important;
}

/* Match the rounded card/image language from the index page */
.hero-image img,
.image-box img,
.photo-grid img{
    border-radius:14px !important;
}

/* Interactive images: 10% scale on hover */
.hero-image,
.image-box,
.photo-grid figure{
    overflow:hidden;
    border-radius:14px;
}

.hero-image img,
.image-box img,
.photo-grid img{
    transition:transform .22s ease !important;
    transform-origin:center center;
}

@media (hover:hover) and (pointer:fine){
    .hero-image:hover img,
    .image-box:hover img,
    .photo-grid figure:hover img{
        transform:scale(1.10);
    }
}

/* Curvature Matters section */
.findings{
    background:#e8ebea !important;
}

/* Keep all dark text on the same navy as the index page */
body,
h1,
h2,
h3,
.site-name,
.nav-links a,
.body-text,
.output h3,
.output p,
.skills span,
figcaption,
footer a{
    color:#14253d;
}

/* Research accent color */
.eyebrow,
.section-label,
.process-item span,
.output > span,
.nav-links a:hover,
.nav-links .active{
    color:#4c6170 !important;
}

.process-item{
    border-top-color:#4c6170 !important;
}

.skills span{
    border-color:#4c6170 !important;
}

/* Slightly rounded section presentation where colored/background blocks appear */
.findings,
.presentation{
    border-radius:14px;
}


/* =====================================================
   V3 — typography, width, and scrolling snake aligned
   with the main index page
===================================================== */

:root{
    --navy:#14253d;
    --navy2:#263b58;
    --muted:#667080;
    --line:#d9ddda;
    --cream:#fafafa;
    --sidebar-rail:58px;
    --sidebar-full:200px;
}

/* Same page-level typography as index.html */
html{
    scroll-behavior:smooth;
    scrollbar-width:none;
}

::-webkit-scrollbar{
    width:0;
    height:0;
    display:none;
}

body{
    margin:0;
    padding-left:var(--sidebar-rail) !important;
    background:var(--cream) !important;
    color:var(--navy) !important;
    font-family:'Work Sans',Arial,sans-serif !important;
    font-size:16px !important;
}

h1,
h2,
h3{
    font-family:'DM Serif Display',Georgia,serif !important;
    color:var(--navy) !important;
    font-weight:400 !important;
}

p{
    margin-top:0;
}

/* Match the main site's content width instead of spanning most of viewport */
.page > .hero,
.page > .section{
    width:min(1152px,calc(100% - 96px)) !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box;
}

.hero{
    min-height:100vh !important;
    padding:90px 0 100px !important;
    gap:64px !important;
}

.section{
    padding:115px 0 !important;
}

/* Index-style type scale */
.eyebrow,
.section-label{
    font-family:'Work Sans',Arial,sans-serif !important;
    font-size:14px !important;
    letter-spacing:.2em !important;
    text-transform:uppercase !important;
    font-weight:600 !important;
    line-height:1.35 !important;
}

.eyebrow{
    margin-bottom:13px !important;
}

.section-label{
    margin-bottom:40px !important;
}

.hero h1{
    font-size:clamp(68px,10vw,136px) !important;
    line-height:.86 !important;
    letter-spacing:-.03em !important;
    margin:0 0 28px !important;
}

.subtitle{
    max-width:560px !important;
    color:var(--muted) !important;
    font-family:'Work Sans',Arial,sans-serif !important;
    font-size:17px !important;
    line-height:1.7 !important;
    font-weight:300 !important;
}

.section h2{
    font-size:clamp(38px,5vw,56px) !important;
    line-height:1 !important;
    margin:0 0 35px !important;
}

.body-text{
    max-width:750px !important;
    color:var(--muted) !important;
    font-family:'Work Sans',Arial,sans-serif !important;
    font-size:15px !important;
    line-height:1.75 !important;
    font-weight:300 !important;
}

.process-item h3{
    font-size:29px !important;
    line-height:1.1 !important;
}

.process-item p,
.output p{
    color:var(--muted) !important;
    font-size:15px !important;
    line-height:1.75 !important;
    font-weight:300 !important;
}

.process-item span,
.output > span{
    font-size:14px !important;
    letter-spacing:.16em !important;
    text-transform:uppercase !important;
    font-weight:600 !important;
}

figcaption{
    color:var(--muted) !important;
    font-size:13px !important;
    line-height:1.5 !important;
    font-weight:300 !important;
}

.note{
    color:var(--muted) !important;
    font-size:13px !important;
    line-height:1.6 !important;
    font-weight:300 !important;
}

.output h3{
    font-size:29px !important;
    line-height:1.1 !important;
    margin:0 0 8px !important;
}

/* Keep the previous palette choices */
.eyebrow,
.section-label,
.process-item span,
.output > span{
    color:#4c6170 !important;
}

.process-item{
    border-top-color:#4c6170 !important;
}

.findings{
    background:#e8ebea !important;
    padding-left:48px !important;
    padding-right:48px !important;
}

/* Same rounded image/card feel as index */
.hero-image,
.image-box,
.photo-grid figure{
    border-radius:14px !important;
    overflow:hidden !important;
}

.hero-image img,
.image-box img,
.photo-grid img{
    border-radius:14px !important;
}

/* Same scrolling snake as index */
.scroll-snake{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:fixed !important;
    top:8px !important;
    bottom:8px !important;
    right:12px !important;
    width:48px !important;
    height:auto !important;
    z-index:5500 !important;
    pointer-events:none !important;
    overflow:visible !important;
}

.scroll-snake svg{
    display:block !important;
    visibility:visible !important;
    width:48px !important;
    height:100% !important;
    overflow:visible !important;
}

#snake-ghost,
#snake-path{
    display:block !important;
    visibility:visible !important;
    fill:none !important;
    stroke-width:4.5 !important;
    vector-effect:non-scaling-stroke !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

#snake-ghost{
    stroke:#d5dfdc !important;
    opacity:1 !important;
}

#snake-path{
    stroke:#42524d !important;
    opacity:1 !important;
    stroke-dasharray:1;
    stroke-dashoffset:1;
}

@media(max-width:800px){
    :root{
        --sidebar-rail:54px;
        --sidebar-full:176px;
    }

    .page > .hero,
    .page > .section{
        width:calc(100% - 72px) !important;
    }

    .hero{
        grid-template-columns:1fr !important;
        padding:70px 0 80px !important;
    }

    .section{
        padding:85px 0 !important;
    }

    .hero h1{
        font-size:76px !important;
    }

    .subtitle{
        font-size:15px !important;
        max-width:390px !important;
    }

    .scroll-snake{
        right:7px !important;
        width:38px !important;
    }

    .scroll-snake svg{
        width:38px !important;
    }

    .findings{
        padding-left:28px !important;
        padding-right:28px !important;
    }
}

@media(max-width:500px){
    .hero h1{
        font-size:64px !important;
    }
}
