/* ==========================================================================
   Erva Şengül — portfolio v5
   Illustrated, light, playful-tech. Sky-blue hero with a top-down scene,
   cream sections, pastel illustrated project covers, sticker tags.
   ========================================================================== */

:root {
    --blue: #75b2e2;            /* hero / contact band — matches the illustration */
    --blue-deep: #2f5a8a;       /* shadows in the illustrations */
    --navy: #14304f;
    --cream: #f7f2e8;
    --cream-2: #efe7d8;
    --paper: #fffdf8;
    --line: #e4dccb;
    --line-2: #d3c9b4;
    --text: #1d1d1b;
    --text-2: #4b4a45;
    --muted: #7d7a70;
    --accent: #2f5a8a;

    /* sticker palette (from the project covers) */
    --sage: #9cc3a6;
    --sand: #e8c89b;
    --mint: #a9d3cf;
    --coral: #f0a892;
    --lavender: #b8b5e0;
    --butter: #efd37c;

    --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --container: 1180px;
    --gutter: 24px;
    --radius: 18px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--cream); color: var(--text);
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--butter); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 8px 12px; background: var(--navy); color: #fff; border-radius: 8px; z-index: 100; font-size: 14px; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hand { font-family: var(--hand); font-size: 1.35rem; color: var(--text-2); line-height: 1.2; }

.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; }
.section-title .count { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 12px; letter-spacing: .04em; vertical-align: middle; }
.section-sub { max-width: 58ch; color: var(--text-2); }

/* underline scribble under some titles */
.scribble { position: relative; display: inline-block; }
.scribble::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: -6px; height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 C 40 2, 80 9, 120 4 S 180 3, 198 6' fill='none' stroke='%23efd37c' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    z-index: -1;
}

/* links + buttons */
.u-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--butter); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.u-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.u-link:hover { border-color: var(--navy); }
.u-link:hover svg { transform: translate(2px, -2px); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1; border: 2px solid var(--navy); transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(20, 48, 79, .6); }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--navy); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-static { cursor: default; opacity: .85; }
.btn-static:hover { transform: none; background: transparent; }

/* sticker tags (pin 1) */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--text); background: var(--paper); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 9px; box-shadow: 2px 2px 0 var(--line-2); transition: transform .2s var(--ease); }
.tags li:nth-child(4n+1) { background: #fff3c4; }
.tags li:nth-child(4n+2) { background: #e3f1e6; }
.tags li:nth-child(4n+3) { background: #e6ecfa; }
.tags li:nth-child(4n+4) { background: #fde4dc; }
.tags li:hover { transform: rotate(-2deg) translateY(-1px); }

/* --------------------------------------------------------------------------
   Navigation — transparent over the blue hero, cream once scrolled
   -------------------------------------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-nav.scrolled { background: rgba(247, 242, 232, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--navy); opacity: .85; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; text-decoration: underline 3px var(--butter); text-underline-offset: 7px; }
.nav-links .btn { padding: 8px 14px; font-size: 13px; opacity: 1; }
.nav-links .nav-cv { gap: 6px; color: #fff; }
.nav-links .nav-cv:hover { transform: translateY(-1px); }
/* phone-only résumé pill; the markup also carries `hidden`, so it stays hidden if this file is stale.
   Bump the ?v= query on styles.css / script.js in the HTML whenever these files change. */
.nav-cv-m { display: none; }
.nav-cv-m svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; width: 40px; height: 40px; margin-right: -8px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .25s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero — the blue top-down scene (pin 4)
   -------------------------------------------------------------------------- */
.hero { background: var(--blue); color: var(--navy); margin-top: -68px; padding-top: 68px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); gap: 24px; }
.hero-copy { padding: 48px 0 56px; position: relative; z-index: 2; }
.hero-eyebrow { color: var(--navy); opacity: .7; margin-bottom: 18px; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.hero-role { margin-top: 14px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; max-width: 30ch; line-height: 1.4; }
.hero-lead { margin-top: 16px; max-width: 46ch; color: var(--navy); opacity: .85; font-size: 15.5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .btn-ghost { border-color: rgba(20, 48, 79, .5); }
.hero-hint { display: flex; align-items: center; gap: 10px; margin-top: 26px; }
.hero-hint .hand { color: var(--navy); font-size: 1.3rem; }
.hero-hint svg { width: 34px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; }
.hero-figure { position: relative; width: 132%; max-width: none; margin-left: -32%; margin-right: -8%; }
.hero-art img {
    width: 100%; height: auto;
    /* fade the edges so the illustration melts into the band */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%), linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 100%), linear-gradient(180deg, #000 0, #000 78%, transparent 100%);
}
/* clickable computer: coordinates are % of the image box */
.hotspot {
    position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
    border-radius: 12px; z-index: 3;
}
.hotspot::before {
    content: ""; position: absolute; inset: -6px; border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
    animation: pulse 2.2s var(--ease) infinite;
}
.hotspot-tip {
    position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%);
    white-space: nowrap; background: var(--navy); color: #fff; font-family: var(--display); font-weight: 600; font-size: 13px;
    padding: 7px 12px; border-radius: 999px; opacity: 0; transition: opacity .2s, transform .25s var(--ease);
    pointer-events: none;
}
.hotspot-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hotspot:hover .hotspot-tip, .hotspot:focus-visible .hotspot-tip { opacity: 1; transform: translate(-50%, calc(-100% - 4px)); }
.hotspot:hover::before { animation-play-state: paused; box-shadow: 0 0 0 8px rgba(255, 255, 255, .35); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

.hero-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 0 22px; }
.hero-foot .mono { color: var(--navy); opacity: .65; }

/* --------------------------------------------------------------------------
   Projects — illustrated cards (pin 2 + the pastel tiles)
   -------------------------------------------------------------------------- */
.projects { background: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 44px; }
.project { display: flex; flex-direction: column; }
.project-media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--tile, var(--cream-2)); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -30px rgba(20, 48, 79, .45); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project-media img, .project-media:focus-visible img { transform: scale(1.03); }
.view-chip {
    position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--display); font-weight: 600; font-size: 13px; color: #fff; background: var(--navy);
    padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateY(6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.view-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-media:hover .view-chip, .project-media:focus-visible .view-chip { opacity: 1; transform: none; }
@media (hover: none) { .view-chip { opacity: 1; transform: none; } }
.project-num { position: absolute; left: 16px; top: 14px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--navy); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 5px 10px; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.project-title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-top: 8px; letter-spacing: -.02em; }
.project-title a:hover { color: var(--accent); }
.project-desc { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.project-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.note { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Yedik feature — warm band
   -------------------------------------------------------------------------- */
.yedik { background: #f3e6cf; }
.yedik-head { max-width: 64ch; }
.yedik-head .mono { margin-bottom: 14px; }
.yedik-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; }
.yedik-tagline { margin-top: 14px; font-size: 17px; color: var(--text-2); }

.screens { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin: 44px 0 12px; }
.screens figure { margin: 0; }
.screens img { width: 100%; height: auto; aspect-ratio: 600 / 1300; object-fit: cover; border-radius: 22px; border: 3px solid #fff; background: #fff; box-shadow: 0 22px 44px -26px rgba(60, 30, 10, .5); transition: transform .35s var(--ease); }
.screens figure:hover img { transform: translateY(-6px) rotate(-1deg); }
.screens figcaption { margin-top: 10px; text-align: center; }

.yedik-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; margin-top: 48px; align-items: start; }
.yedik-copy p { color: var(--text-2); font-size: 16px; }
.yedik-copy p + p { margin-top: 14px; }
.yedik-copy .note { display: block; margin-top: 16px; }

.built { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.built > div { background: rgba(255, 255, 255, .55); border-radius: 14px; padding: 16px 18px; }
.built h3 { font-family: var(--display); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.built li { font-size: 14px; color: var(--text-2); padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.built li:first-child { border-top: 0; padding-top: 0; }

.pipeline { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px 18px; border-radius: 14px; background: #fff; }
.pipeline .step { font-family: var(--mono); font-size: 12px; color: var(--text); padding: 6px 10px; border-radius: 6px; background: var(--cream-2); }
.pipeline .step.push { background: var(--navy); color: #fff; }
.pipeline .sep { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.pipeline .label { flex-basis: 100%; }

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */
.archive-list { border-top: 1px solid var(--line-2); }
.archive-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 90px 20px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.archive-row:hover { background: var(--cream-2); }
.archive-row:hover .archive-name { color: var(--accent); }
.archive-name { font-family: var(--mono); font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.archive-desc { font-size: 14px; color: var(--text-2); }
.archive-lang { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.archive-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.archive-cta { margin-top: 24px; }

/* --------------------------------------------------------------------------
   About — notebook / scrapbook (pin 1): graph paper, taped photo, stickers
   -------------------------------------------------------------------------- */
.about {
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 36px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 36px 100%,
        var(--paper);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.polaroid { position: relative; background: #fff; padding: 14px 14px 46px; transform: rotate(-3deg); box-shadow: 0 18px 40px -24px rgba(20, 48, 79, .5); max-width: 360px; }
.polaroid::before, .polaroid::after { content: ""; position: absolute; width: 92px; height: 26px; background: rgba(239, 211, 124, .75); top: -12px; transform: rotate(-4deg); left: 26px; border-radius: 2px; }
.polaroid::after { left: auto; right: 22px; transform: rotate(5deg); top: -10px; }
.polaroid .frame { aspect-ratio: 4 / 5; background: var(--cream-2); overflow: hidden; }
.polaroid .frame img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .caption { position: absolute; left: 14px; right: 14px; bottom: 12px; text-align: center; }
.about-copy p { font-size: 16.5px; color: var(--text-2); }
.about-copy p + p { margin-top: 14px; }
.about-copy p a { color: var(--accent); border-bottom: 1px solid transparent; }
.about-copy p a:hover { border-color: currentColor; }

.stickers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stickers li { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--navy); padding: 8px 14px; border-radius: 6px; transform: rotate(var(--r, 0deg)); box-shadow: 2px 3px 0 rgba(20, 48, 79, .25); }
.stickers li:nth-child(6n+1) { background: var(--butter); --r: -2deg; }
.stickers li:nth-child(6n+2) { background: var(--mint); --r: 1.5deg; }
.stickers li:nth-child(6n+3) { background: var(--coral); --r: -1deg; }
.stickers li:nth-child(6n+4) { background: var(--lavender); --r: 2deg; }
.stickers li:nth-child(6n+5) { background: var(--sage); --r: -1.5deg; }
.stickers li:nth-child(6n+6) { background: var(--sand); --r: 1deg; }

.fact-list { margin-top: 32px; border-top: 1px solid var(--line-2); }
.fact-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fact-list .k { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.fact-list .v { color: var(--text); }
.fact-list .v a { color: var(--accent); border-bottom: 1px solid transparent; }
.fact-list .v a:hover { border-color: currentColor; }

/* --------------------------------------------------------------------------
   Contact — blue band, like the hero
   -------------------------------------------------------------------------- */
.contact { background: var(--blue); color: var(--navy); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.contact .mono { color: var(--navy); opacity: .7; }
.contact-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.contact-lead { margin-top: 16px; max-width: 46ch; opacity: .9; }
.contact-email { display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.7rem); border-bottom: 3px solid rgba(20, 48, 79, .4); padding-bottom: 2px; transition: border-color .2s; }
.contact-email:hover { border-color: var(--navy); }
.contact-links { background: rgba(255, 255, 255, .55); border-radius: var(--radius); padding: 6px 20px; }
.contact-links li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(20, 48, 79, .15); font-size: 15px; font-weight: 600; transition: opacity .2s; }
.contact-links li:last-child a { border-bottom: 0; }
.contact-links li a:hover { opacity: .75; }
.contact-links li a span { font-family: var(--mono); font-size: 12px; font-weight: 400; opacity: .8; }
.contact-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { background: var(--blue); color: var(--navy); padding: 22px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* blue page above the footer: separate them with a hairline instead of a colour change */
.home .site-footer, .contact-body .site-footer { padding-top: 0; }
.home .footer-inner, .contact-body .footer-inner { border-top: 1px solid rgba(20, 48, 79, .18); padding-top: 18px; }
.site-footer a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-footer a:hover { border-color: currentColor; }
.site-footer .mono { color: var(--navy); opacity: .7; }

/* --------------------------------------------------------------------------
   Résumé (About) — a mini CV page taped under the photo
   -------------------------------------------------------------------------- */
.about-grid { grid-template-areas: "photo copy" "cv copy"; grid-template-rows: auto 1fr; row-gap: 40px; }
.polaroid { grid-area: photo; }
.about-copy { grid-area: copy; }
.cv-paper { grid-area: cv; max-width: 360px; }
.cv-doc {
    position: relative; display: block; background: #fff; padding: 20px 20px 14px;
    border-radius: 3px; transform: rotate(2deg);
    box-shadow: 0 18px 40px -24px rgba(20, 48, 79, .55), 0 1px 0 rgba(20, 48, 79, .06);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cv-doc::before { content: ""; position: absolute; top: -11px; right: 34px; width: 84px; height: 24px; background: rgba(169, 211, 207, .8); transform: rotate(6deg); border-radius: 2px; }
.cv-doc:hover, .cv-doc:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 26px 48px -26px rgba(20, 48, 79, .6); }
.cv-doc i { display: block; height: 6px; border-radius: 3px; background: var(--cream-2); }
.cv-doc i.short { width: 55%; }
.cv-doc-top { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; }
.cv-doc-top img { width: 58px; height: 72px; object-fit: cover; border-radius: 3px; }
.cv-doc-head strong { display: block; font-family: var(--display); font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.cv-doc-head > span { display: block; font-size: 12px; color: var(--muted); margin: 1px 0 8px; }
.cv-doc-head i + i { margin-top: 6px; }
.cv-doc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; margin-top: 18px; }
.cv-doc-checks > span { display: flex; align-items: center; gap: 7px; }
.cv-doc-checks b { position: relative; flex: 0 0 13px; height: 13px; border: 1.5px solid var(--line-2); border-radius: 3px; }
.cv-doc-checks b::after { content: ""; position: absolute; left: 3px; top: -2px; width: 5px; height: 9px; border: solid #2f7a4f; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.cv-doc-checks i { flex: 1; }
.cv-doc-lines { display: grid; gap: 7px; margin-top: 18px; }
.cv-doc-sign { display: block; text-align: right; margin-top: 8px; font-size: 1.5rem; color: var(--navy); }
.cv-download { margin-top: 22px; }
.cv-meta { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Project pages
   -------------------------------------------------------------------------- */
.case-hero { background: var(--tile); color: var(--navy); margin-top: -68px; padding: 100px 0 48px; overflow: hidden; }
.back-link, .pager-card .mono { display: inline-flex; align-items: center; gap: 8px; }
.back-link { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--navy); background: rgba(255, 255, 255, .55); padding: 7px 14px 7px 10px; border-radius: 999px; transition: background .2s; }
.back-link:hover { background: rgba(255, 255, 255, .85); }
.back-link svg, .pager-card svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; margin-top: 20px; }
.case-kicker { color: var(--navy); opacity: .75; }
.case-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: -.03em; margin-top: 12px; }
.case-lead { margin-top: 16px; font-size: 17px; line-height: 1.6; max-width: 46ch; opacity: .9; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.case-actions .btn-ghost { background: rgba(255, 255, 255, .55); border-color: rgba(20, 48, 79, .45); }
.case-art img {
    width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(180deg, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    mask-image: linear-gradient(90deg, transparent 0, #000 18%), linear-gradient(180deg, #000 80%, transparent 100%);
}

.case-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.case-main > h2 { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; margin: 52px 0 14px; }
.case-main > h2:first-child { margin-top: 0; }
.case-sub { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin: 30px 0 12px; }
.case-main p { color: var(--text-2); font-size: 16.5px; }
.case-main p + p { margin-top: 12px; }
.case-main p a { color: var(--accent); border-bottom: 1px solid currentColor; }
.case-main code { font-family: var(--mono); font-size: .88em; background: var(--cream-2); padding: 1px 5px; border-radius: 4px; }
.case-photo { margin: 28px 0 0; }
.case-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 22px 44px -30px rgba(20, 48, 79, .6); }
.case-photo figcaption { margin-top: 8px; text-align: right; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 2px; padding: 14px 18px 14px 64px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--navy); background: var(--tile); border-radius: 7px; padding: 3px 7px; }
.steps strong { font-family: var(--display); font-size: 15.5px; }
.steps span { color: var(--text-2); font-size: 15px; }

.code-tree { list-style: none; margin-top: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.code-tree li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: baseline; padding: 11px 16px; border-top: 1px solid var(--line); }
.code-tree li:first-child { border-top: 0; }
.case-main .code-tree li > code { background: none; padding: 0; color: var(--navy); font-size: 13px; overflow-wrap: anywhere; }
.code-tree span { font-size: 14px; color: var(--text-2); }
.snippet { margin-top: 14px; background: var(--navy); color: #e6edf6; font-family: var(--mono); font-size: 13px; line-height: 1.7; padding: 16px 18px; border-radius: 12px; overflow-x: auto; white-space: pre; }
.case-main .code-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

.layer-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.layer-stack li { position: relative; font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); }
.layer-stack li:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.data-table tr.is-key td { font-weight: 600; }
.state { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.state-high::before, .state-low::before { background: #d98a1c; }
.state-charging::before { background: #3a6fb0; }
.state-good::before, .state-ok::before { background: #2f7a4f; }
.state-critical::before { background: #c4452b; }

.glance { position: sticky; top: 92px; background: var(--paper); border: 1.5px solid var(--navy); border-radius: 16px; padding: 20px 22px 22px; box-shadow: 6px 6px 0 var(--tile); }
.glance dl { margin: 12px 0 0; }
.glance dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.glance dl div:first-child { border-top: 0; }
.glance dt { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.glance dd { margin: 0; font-size: 14.5px; color: var(--text); }
.glance dd a { color: var(--accent); border-bottom: 1px solid currentColor; }
.glance .tags { margin-top: 14px; }
.glance-btn { width: 100%; justify-content: center; margin-top: 18px; }

.screens-case { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 8px; }

.case-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 88px; }
.pager-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-2); transition: transform .2s var(--ease), box-shadow .2s; }
.pager-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(20, 48, 79, .5); }
.pager-card strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.01em; }
.pager-next { align-items: flex-end; text-align: right; }

/* chart (weather page) — single series, validated #5b57b8 on the paper surface */
.chart-card { --series: #5b57b8; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 12px; }
.chart-title strong { display: block; font-family: var(--display); font-size: 15px; color: var(--text); }
.chart-title span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.chart-wrap { position: relative; margin-top: 10px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart-wrap svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--line-2); stroke-width: 1; }
.chart-tick { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.chart-line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot, .chart-focus { fill: var(--series); stroke: var(--paper); stroke-width: 2; }
.chart-label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; fill: var(--text); }
.chart-cross { stroke: var(--text-2); stroke-width: 1; }
.chart-cross, .chart-focus { opacity: 0; transition: opacity .12s; }
.chart-tip { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .12s; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; box-shadow: 0 10px 24px -14px rgba(20, 48, 79, .45); white-space: nowrap; }
.chart-wrap.is-active .chart-cross, .chart-wrap.is-active .chart-focus, .chart-wrap.is-active .chart-tip { opacity: 1; }
.chart-tip strong { display: block; font-family: var(--display); font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-tip span::before { content: ""; width: 12px; height: 2px; border-radius: 1px; background: var(--series); }
.chart-data { margin-top: 10px; }
.chart-data summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); }
.chart-data .data-table { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Inner pages: shared header band
   -------------------------------------------------------------------------- */
.page-hero { background: var(--blue); color: var(--navy); margin-top: -68px; padding: 124px 0 60px; }
.page-kicker { color: var(--navy); opacity: .7; }
.page-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.035em; margin-top: 10px; }
.page-sub { margin-top: 16px; max-width: 58ch; font-size: 17px; line-height: 1.6; opacity: .88; }
.section.page-first { padding-top: 64px; }
.contact-page { margin-top: -68px; padding: 150px 0 110px; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); display: flex; align-items: center; }
.contact-page .contact-grid { width: 100%; }

/* --------------------------------------------------------------------------
   Designs page
   -------------------------------------------------------------------------- */
.designs { padding: 16px 0 48px; }
.design { padding: 64px 0; border-top: 1px solid var(--line); }
.designs-cta + .design { border-top: 0; }
.design-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.design-head .mono { margin-bottom: 8px; }
.design-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; line-height: 1.05; }
.design-stage { position: relative; background: var(--tile, var(--cream-2)); border-radius: 24px; padding: 44px 56px 0; overflow: hidden; }
.browser { position: relative; background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(20, 48, 79, .55); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #efeae1; border-bottom: 1px solid var(--line); }
.browser-bar i { flex: 0 0 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar i + i { background: #febc2e; }
.browser-bar i + i + i { background: #28c840; }
.browser-bar span { margin: 0 auto; min-width: 40%; padding: 4px 16px; border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; }
.browser img, .phone img { display: block; width: 100%; height: auto; }
.phone { position: absolute; right: 40px; bottom: 28px; width: 190px; border: 7px solid #1d1d1b; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6); }
.stage-phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; padding-bottom: 44px; }
.stage-phones .phone { position: static; width: 210px; }
.stage-phones .phone:nth-child(2) { transform: translateY(-20px); }
.design-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; margin-top: 36px; align-items: start; }
.design-body p { color: var(--text-2); font-size: 16.5px; }
.design-body p + p { margin-top: 12px; }
.design-body p a { color: var(--accent); border-bottom: 1px solid currentColor; }
.design-facts { margin: 0; border-top: 1px solid var(--line-2); }
.design-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.design-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.design-facts dd { margin: 0; font-size: 14.5px; color: var(--text); }
.design-facts dd a { color: var(--accent); border-bottom: 1px solid currentColor; }
.design-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 20px; }
.design-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.design-gallery figure { margin: 0; }
.design-gallery .browser { border-radius: 10px; box-shadow: 0 18px 36px -26px rgba(20, 48, 79, .5); border: 1px solid var(--line); }
.design-gallery .browser-bar { height: 24px; gap: 5px; padding: 0 10px; }
.design-gallery .browser-bar i { flex-basis: 7px; height: 7px; }
.design-gallery figcaption { margin-top: 8px; }
.screens-design { margin: 32px 0 0; }
.design-gallery-wide { grid-template-columns: minmax(0, 1fr); }
.designs-cta { margin: 48px 0 8px; padding: 36px 40px; border-radius: 20px; background: var(--paper); border: 1.5px solid var(--navy); box-shadow: 6px 6px 0 var(--butter); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.designs-cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.designs-cta p { color: var(--text-2); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .project-media img, .screens img { transition: none; }
    .hotspot::before { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { padding: 40px 0 8px; }
    .hero-art { justify-content: center; }
    .hero-figure { width: 100%; margin: 0; max-width: 640px; }
    .yedik-body { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; }
    .contact-grid { grid-template-columns: 1fr; }
    .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .case-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .case-art { max-width: 560px; }
    .case-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .glance { position: static; }
}
@media (max-width: 720px) {
    :root { --gutter: 16px; }
    .section { padding: 64px 0; }

    /* the empty <nav> is still a flex item; the auto margin pins the button to the right edge */
    .nav-toggle { display: flex; margin-left: auto; }
    .nav-cv-m {
        display: inline-flex; align-items: center; gap: 5px; margin-left: 10px;
        font-family: var(--display); font-weight: 600; font-size: 12.5px; line-height: 1;
        color: #fff; background: var(--navy); padding: 7px 11px; border-radius: 999px;
    }
    .nav-cv-item { display: none; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
    .nav-open .nav-links { display: flex; }
    .nav-links a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
    .nav-links a:first-child { border-top: 0; }
    .nav-links .btn { margin-top: 12px; justify-content: center; }

    .hero-title { font-size: 2.4rem; }
    .project-grid { grid-template-columns: 1fr; gap: 44px; }
    .project-title { font-size: 1.35rem; }

    .screens { display: flex; overflow-x: auto; gap: 14px; margin: 32px calc(-1 * var(--gutter)) 8px; padding: 12px var(--gutter) 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .screens figure { flex: 0 0 46%; scroll-snap-align: start; display: block !important; }
    .built { grid-template-columns: 1fr; gap: 14px; }

    .archive-row { grid-template-columns: minmax(0, 1fr) 20px; row-gap: 2px; }
    .archive-lang { display: none; }
    .archive-name { grid-column: 1; grid-row: 1; }
    .archive-desc { grid-column: 1; grid-row: 2; }
    .archive-arrow { grid-column: 2; grid-row: 1 / span 2; }

    .about-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "copy" "cv"; grid-template-rows: auto; }
    .cv-paper { width: 100%; max-width: 320px; margin: 0 auto; }
    .polaroid { width: 100%; max-width: 300px; margin: 8px auto 24px; }
    .fact-list li { grid-template-columns: 1fr; gap: 2px; }
    .footer-inner { flex-direction: column; gap: 6px; }

    .page-hero { padding: 100px 0 40px; }
    .contact-page { padding: 112px 0 72px; }
    .design { padding: 44px 0; }
    .design-stage { padding: 18px 18px 0; border-radius: 18px; }
    .browser-bar { height: 26px; }
    .browser-bar span { display: none; }
    .phone { right: 12px; bottom: 12px; width: 96px; border-width: 4px; border-radius: 16px; }
    .stage-phones { gap: 10px; padding-bottom: 20px; }
    .stage-phones .phone { width: 31%; }
    .design-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .design-gallery { grid-template-columns: minmax(0, 1fr); }
    .designs-cta { padding: 26px 22px; }

    .cv-card { grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 18px 20px 12px; }
    .cv-body h3 { font-size: 1.2rem; }
    .case-hero { padding: 92px 0 32px; }
    .code-tree li { grid-template-columns: 1fr; gap: 2px; }
    .case-pager { grid-template-columns: 1fr; gap: 12px; }
    .pager-next { align-items: flex-start; text-align: left; }
    .screens-case { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
    .chart-tick { font-size: 18px; }
    .chart-label { font-size: 19px; }
}
