:root {
    color-scheme: dark;
    --desk-ratio: 1672 / 941;
    --glow: rgba(255, 208, 88, 0.78);
    --glow-hot: rgba(255, 232, 134, 0.98);
    --ink: #f7efe3;
    --muted: rgba(247, 239, 227, 0.68);
    --line: rgba(255, 255, 255, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #100b08;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

button {
    font: inherit;
}

.site-nav {
    position: fixed;
    top: clamp(18px, 2.4vw, 28px);
    left: 50%;
    z-index: 20;
    transform: translate(-50%, -160%) rotate(-1.2deg);
    padding: 12px 28px 14px;
    background: #f8efe3;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, #faf2e7, #f3e8d8);
    background-size: 4px 4px, 100% 100%;
    color: #2a2018;
    border-radius: 2px;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
}

.site-nav::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -14px;
    width: 56px;
    height: 20px;
    background: rgba(255, 230, 150, 0.6);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 220, 130, 0.5);
    transform: rotate(-14deg);
    border-radius: 1px;
}

.site-nav::after {
    content: "";
    position: absolute;
    top: -10px;
    right: -14px;
    width: 56px;
    height: 20px;
    background: rgba(255, 230, 150, 0.6);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 220, 130, 0.5);
    transform: rotate(10deg);
    border-radius: 1px;
}

.site-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) rotate(-1.2deg);
}

.nav-links {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    font-family: "Caveat", "Comic Sans MS", cursive;
    color: #2a2018;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 4px 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    isolation: isolate;
    transition: color 180ms ease;
}

.nav-links a > span:first-child {
    font-family: "Courier New", monospace;
    font-size: 10px;
    color: rgba(42, 32, 24, 0.45);
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 4px;
    height: 10px;
    background: rgba(255, 200, 80, 0.65);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
    color: #1a120c;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-current::after {
    transform: scaleX(1);
}

.nav-links a:hover > span:first-child,
.nav-links a:focus-visible > span:first-child,
.nav-links a.is-current > span:first-child {
    color: #c44400;
}

.lang-switcher {
    position: fixed;
    left: clamp(14px, 2vw, 22px);
    bottom: clamp(14px, 2vw, 22px);
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px 7px;
    background: rgba(20, 14, 10, 0.85);
    border: 1px solid rgba(255, 220, 150, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
    font-family: "Caveat", "Comic Sans MS", cursive;
    font-size: 20px;
    font-weight: 700;
}

.lang-switcher button {
    background: transparent;
    border: 0;
    padding: 2px 10px;
    color: rgba(247, 239, 227, 0.55);
    font: inherit;
    border-radius: 999px;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.lang-switcher button:hover {
    color: rgba(247, 239, 227, 0.85);
}

.lang-switcher button.is-active {
    background: rgba(255, 220, 150, 0.18);
    color: #ffd58a;
}

.lang-switcher-sep {
    color: rgba(247, 239, 227, 0.3);
    user-select: none;
}

.desk-stage {
    height: 100svh;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
}

.about-section,
.content-section {
    position: relative;
    background: linear-gradient(180deg, #100b08 0%, #15100d 46%, #0f0c0a 100%);
}

.about-section {
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: clamp(76px, 10vw, 132px) 24px;
}

.about-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(34px, 6vw, 78px);
    align-items: center;
}

.portrait-wrap {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto;
    overflow: visible;
}

.sticker {
    position: absolute;
    width: clamp(46px, 5vw, 64px);
    height: clamp(46px, 5vw, 64px);
    z-index: 3;
    pointer-events: none;
    display: grid;
    place-items: center;
    background: #f8efe3;
    border-radius: 50%;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.sticker svg {
    width: 60%;
    height: 60%;
    color: #2a2018;
}

.sticker-1 { 
    top: -26px;
    right: -24px;
    --rot: 14deg;
    transform: rotate(14deg);
}

.sticker-2 { 
    bottom: -20px;
    left: -22px;
    --rot: -12deg;
    transform: rotate(-12deg);
}

.sticker-5 { 
    bottom: -16px;
    right: -28px;
    --rot: 18deg;
    transform: rotate(18deg);
}

.sticker-6 { 
    top: -28px;
    left: -28px;
    --rot: -16deg;
    transform: rotate(-16deg);
}

.sticker-7 { 
    top: 18%;
    left: -34px;
    --rot: -22deg;
    transform: rotate(-22deg);
    background: rgba(20, 14, 10, 0.92);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.55),
        0 2px 4px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 217, 128, 0.4);
}

.sticker-7 svg {
    color: #ffd980;
}

.portrait-frame {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 72px;
    margin: 0 auto;
    width: min(420px, 100%);
    aspect-ratio: 4 / 5;
    padding: 18px 18px 0;
    background: #f8efe3;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
        linear-gradient(180deg, #faf2e7, #efe2cf);
    background-size: 4px 4px, 100% 100%;
    border-radius: 2px;
    transform: rotate(-2deg);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.58),
        0 6px 14px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.portrait-frame::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 28px;
    width: 84px;
    height: 24px;
    background: rgba(255, 230, 150, 0.6);
    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 220, 130, 0.5);
    transform: rotate(8deg);
    border-radius: 1px;
}

.portrait-frame::after {
    content: "— altuğ";
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Caveat", cursive;
    font-size: 30px;
    font-weight: 600;
    color: #2a2018;
    opacity: 0.85;
}

.portrait-frame img {
    grid-row: 1;
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    background: linear-gradient(160deg, #3a2e26 0%, #1f1813 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.portrait-frame img[src=""],
.portrait-frame img.is-missing {
    display: none;
}

.portrait-fallback {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 72px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #3a2e26, #1a1410);
    color: rgba(247, 239, 227, 0.3);
    font-family: "Caveat", cursive;
    font-size: clamp(72px, 13vw, 140px);
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 1;
    pointer-events: none;
}

.portrait-frame:not(:has(img.is-missing)) .portrait-fallback {
    display: none;
}

.about-copy {
    max-width: 690px;
}

.section-kicker {
    margin: 0 0 20px;
    color: #f0c15c;
    font-family: "Caveat", cursive;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-kicker::after {
    content: "";
    display: inline-block;
    width: 80px;
    height: 2px;
    background: #c44400;
    transform: rotate(-1deg);
    border-radius: 2px;
}

.about-copy h1,
.content-section h2 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
    font-weight: 600;
}

.about-copy h1 {
    font-size: clamp(30px, 4.4vw, 58px);
    line-height: 1.08;
    max-width: 820px;
}

.about-copy h1 mark,
.content-section h2 mark {
    background: linear-gradient(180deg, transparent 55%, rgba(255, 200, 80, 0.55) 55%);
    color: inherit;
    padding: 0 2px;
}

.about-copy p:not(.section-kicker),
.content-section p:not(.section-kicker) {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.about-tags span {
    padding: 7px 14px;
    border: 1px dashed rgba(255, 215, 140, 0.35);
    border-radius: 2px;
    background: rgba(255, 230, 150, 0.06);
    color: rgba(247, 239, 227, 0.85);
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.about-tags span:hover {
    background: rgba(255, 230, 150, 0.14);
    border-color: rgba(255, 215, 140, 0.6);
    color: #ffd980;
    transform: translateY(-1px);
}

.content-section {
    padding: clamp(80px, 10vw, 130px) 24px;
}

.section-inner {
    width: min(880px, 100%);
    margin: 0 auto;
}

.content-section h2 {
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.1;
}

.projects-inner {
    width: min(1240px, 100%);
}

.projects-intro {
    max-width: 780px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(34px, 4vw, 52px);
}

.project-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    min-height: 100%;
    overflow: visible;
    background: #f8efe3;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, #fbf3e8, #efe2cf);
    background-size: 4px 4px, 100% 100%;
    color: #2a2018;
    border-radius: 2px;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.project-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    z-index: 4;
    width: 76px;
    height: 20px;
    background: rgba(255, 230, 150, 0.58);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 220, 130, 0.45);
    border-radius: 1px;
    transform: translateX(-50%) rotate(-2deg);
}

.project-photo {
    --photo-x: 50%;
    --photo-y: 50%;
    --photo-zoom: 100%;
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 46%),
        linear-gradient(135deg, #453932, #201815);
}

.project-photo img {
    position: absolute;
    left: var(--photo-x);
    top: var(--photo-y);
    display: block;
    width: var(--photo-zoom);
    height: var(--photo-zoom);
    max-width: none;
    object-fit: cover;
    object-position: var(--photo-x) var(--photo-y);
    transform: translate(calc(-1 * var(--photo-x)), calc(-1 * var(--photo-y)));
}

.project-copy {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 20px 20px 22px;
}

.project-copy h3 {
    margin: 0;
    color: #2a2018;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: 0;
}

.content-section .project-copy p {
    margin: 0;
    color: rgba(42, 32, 24, 0.74);
    font-size: 15px;
    line-height: 1.55;
}

.content-section .project-copy .project-type {
    color: #c44400;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.3;
    text-transform: uppercase;
}

.content-section .project-copy .project-result {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(42, 32, 24, 0.18);
    color: #2a2018;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.content-section .project-copy .project-result:has(.award-split) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
}

.content-section .project-copy .award-split {
    display: block;
    padding: 6px 0 6px 10px;
    border: 0;
    border-left: 3px solid #c44400;
    line-height: 1.4;
}

.content-section .project-copy .award-split + .award-split {
    border-top: 0;
}

.content-section .project-copy .award-split strong {
    display: block;
    color: #c44400;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

@media (max-width: 980px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card:nth-child(3) {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        grid-template-rows: 1fr;
    }

    .project-card:nth-child(3) .project-photo {
        min-height: 260px;
        aspect-ratio: auto;
    }
}

.web-block {
    margin-top: clamp(48px, 6vw, 72px);
}

.web-block .section-kicker {
    margin-bottom: clamp(18px, 2vw, 26px);
}

.web-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 20px);
}

.web-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 16px;
    padding: 20px 22px;
    background: #f8efe3;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
        linear-gradient(180deg, #faf2e7, #efe2cf);
    background-size: 4px 4px, 100% 100%;
    border-radius: 2px;
    color: #2a2018;
    text-decoration: none;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 220ms cubic-bezier(0.65, 0, 0.35, 1),
                box-shadow 220ms ease;
}

.web-card-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.web-card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.web-card:hover,
.web-card:focus-visible {
    transform: translateY(-3px) rotate(-0.4deg);
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(196, 68, 0, 0.35);
    outline: none;
}

.web-card-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.web-card-url {
    grid-column: 2;
    grid-row: 2;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #c44400;
    text-transform: lowercase;
}

.web-card-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(196, 68, 0, 0.1);
    color: #c44400;
    transition: background 220ms ease, transform 220ms ease;
}

.web-card-arrow svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.web-card:hover .web-card-arrow,
.web-card:focus-visible .web-card-arrow {
    background: #c44400;
    color: #f8efe3;
    transform: translate(2px, -2px);
}

@media (max-width: 980px) {
    .web-grid {
        grid-template-columns: 1fr;
    }
}

.contact-section {
    padding-bottom: clamp(120px, 14vw, 180px);
}

.contact-form {
    margin-top: clamp(34px, 4vw, 52px);
    max-width: 720px;
    padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 40px);
    background: #f8efe3;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.022) 1px, transparent 1px),
        linear-gradient(180deg, #faf2e7, #efe2cf);
    background-size: 4px 4px, 100% 100%;
    border-radius: 2px;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-bottom: clamp(16px, 2vw, 24px);
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-field-label {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #c44400;
}

.contact-field input,
.contact-field textarea {
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    font-weight: 600;
    color: #2a2018;
    background: transparent;
    border: 0;
    border-bottom: 1.5px solid rgba(42, 32, 24, 0.32);
    padding: 8px 2px;
    outline: none;
    transition: border-color 180ms ease;
    width: 100%;
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
    font-size: 15px;
    line-height: 28px;
    border: 1.5px solid rgba(42, 32, 24, 0.22);
    border-radius: 2px;
    padding: 16px 14px 12px;
    background:
        repeating-linear-gradient(180deg,
            transparent 0,
            transparent 27px,
            rgba(80, 130, 200, 0.22) 27px,
            rgba(80, 130, 200, 0.22) 28px);
    background-position: 0 16px;
    background-attachment: local;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #c44400;
}

.contact-field:not(:last-of-type) {
    margin-bottom: clamp(16px, 2vw, 24px);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: clamp(20px, 2.4vw, 28px);
}

.contact-form-status {
    max-width: 720px;
    margin: clamp(24px, 3vw, 34px) 0 0;
    padding: 14px 16px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.45;
    color: #f8efe3;
    background: rgba(248, 239, 227, 0.08);
    border: 1px solid rgba(248, 239, 227, 0.18);
    border-left: 4px solid rgba(240, 193, 92, 0.8);
    border-radius: 2px;
}

.contact-form-status:empty {
    display: none;
}

.contact-form-status:not(:empty) + .contact-form {
    margin-top: 16px;
}

.contact-form-status.is-success {
    color: #eaf7ee;
    background: rgba(42, 122, 68, 0.18);
    border-color: rgba(97, 190, 128, 0.35);
    border-left-color: #61be80;
}

.contact-form-status.is-error {
    color: #fff0e8;
    background: rgba(196, 68, 0, 0.18);
    border-color: rgba(255, 137, 84, 0.34);
    border-left-color: #ff8954;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #f8efe3;
    background: #2a2018;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.contact-submit:hover:not(:disabled),
.contact-submit:focus-visible {
    transform: translateY(-2px);
    background: #c44400;
    outline: none;
    box-shadow:
        0 10px 22px rgba(196, 68, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-submit-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 200ms ease;
}

.contact-submit:hover:not(:disabled) .contact-submit-arrow {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-submit {
        justify-content: center;
    }
}

.academic-inner {
    width: min(1120px, 100%);
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    margin-top: clamp(34px, 4vw, 52px);
}

.academic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(32px, 3.6vw, 46px) clamp(28px, 3.2vw, 40px) clamp(28px, 3.4vw, 40px);
    background: #f8efe3;
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.026) 1px, transparent 1px),
        linear-gradient(180deg, #fbf3e8, #efe2cf);
    background-size: 4px 4px, 100% 100%;
    color: #2a2018;
    border-radius: 2px;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.academic-card:nth-child(odd) {
    transform: rotate(-0.6deg);
}

.academic-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.academic-card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 4;
    width: 76px;
    height: 22px;
    background: rgba(255, 230, 150, 0.58);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 220, 130, 0.45);
    border-radius: 1px;
    transform: translateX(-50%) rotate(-2deg);
}

.academic-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(42, 32, 24, 0.18);
    box-shadow:
        0 -38px 0 rgba(42, 32, 24, 0.18),
        0 38px 0 rgba(42, 32, 24, 0.18),
        inset 0 1px 2px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
}

.academic-card-stamp {
    position: absolute;
    top: clamp(16px, 2vw, 24px);
    right: clamp(14px, 1.8vw, 22px);
    padding: 6px 14px;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #c44400;
    border: 2px solid #c44400;
    border-radius: 2px;
    transform: rotate(8deg);
    opacity: 0.78;
    background: rgba(196, 68, 0, 0.04);
    z-index: 3;
}

.academic-card:nth-child(even) .academic-card-stamp {
    transform: rotate(-6deg);
}

.academic-card-label {
    margin-left: 24px;
    font-family: "Caveat", cursive;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #2a2018;
    align-self: flex-start;
    padding: 0 6px;
    background: linear-gradient(180deg, transparent 62%, rgba(255, 200, 80, 0.55) 62%);
}

.academic-card-value {
    margin-left: 24px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(56px, 7vw, 92px);
    font-weight: 700;
    line-height: 0.9;
    color: #2a2018;
    letter-spacing: -0.02em;
}

.academic-card-unit {
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(42, 32, 24, 0.5);
    text-transform: uppercase;
    padding: 4px 8px;
    border: 1px solid rgba(42, 32, 24, 0.32);
    border-radius: 2px;
    transform: translateY(-0.2em);
}

.exam-block {
    margin-top: clamp(48px, 6vw, 72px);
}

.exam-block .section-kicker {
    margin-bottom: clamp(18px, 2vw, 26px);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
}

.exam-card {
    position: relative;
    padding: 28px 32px 28px 32px;
    background: #f8efe3;
    background-image:
        repeating-linear-gradient(180deg,
            transparent 0,
            transparent 27px,
            rgba(80, 130, 200, 0.22) 27px,
            rgba(80, 130, 200, 0.22) 28px);
    background-position: 0 0;
    color: #2a2018;
    border-radius: 2px;
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    min-height: 252px;
}

.exam-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 44px;
    width: 2px;
    background: rgba(196, 68, 0, 0.45);
}

.exam-card-bg {
    position: absolute;
    top: 28px;
    left: 60px;
    right: 28px;
    bottom: 28px;
    color: rgba(42, 32, 24, 0.22);
    pointer-events: none;
    line-height: 28px;
    margin: 0;
    white-space: pre;
    overflow: hidden;
}

.exam-card-bg.is-handwritten {
    font-family: "Caveat", cursive;
    font-size: 22px;
    color: rgba(42, 32, 24, 0.26);
}

.exam-card-bg.is-code {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    color: rgba(42, 32, 24, 0.32);
}

.physics-art {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 1;
    color: rgba(42, 32, 24, 0.35);
    pointer-events: none;
}

.physics-art svg {
    display: block;
}

.exam-card-front {
    position: relative;
    z-index: 1;
    padding-left: 30px;
}

.ap-badge {
    display: inline-block;
    width: clamp(48px, 5vw, 60px);
    height: clamp(48px, 5vw, 60px);
    line-height: 0;
}

.ap-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ap-badge circle {
    fill: transparent;
}

.ap-badge text {
    fill: #009cde;
}

.exam-card-front h3 {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    font-family: "Caveat", cursive;
    font-size: 44px;
    font-weight: 700;
    line-height: 56px;
    color: #2a2018;
}

.exam-card-front h3.is-long-one-line {
    font-size: 44px;
    line-height: 56px;
    white-space: nowrap;
}

.exam-card-stamp {
    position: absolute;
    top: clamp(14px, 1.8vw, 20px);
    right: clamp(14px, 1.8vw, 20px);
    z-index: 2;
    padding: 5px 11px;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #c44400;
    border: 1.5px solid rgba(196, 68, 0, 0.7);
    border-radius: 2px;
    transform: rotate(6deg);
    opacity: 0.9;
    background: transparent;
}

.exam-card:nth-child(even) .exam-card-stamp {
    transform: rotate(-6deg);
}

@media (max-width: 980px) {
    .academic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .academic-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 760px) {
    .academic-grid {
        grid-template-columns: 1fr;
    }

    .academic-card:nth-child(3) {
        max-width: none;
        margin: 0;
    }

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

    .exam-card {
        padding: 24px 20px 24px 24px;
    }

    .exam-card::before {
        left: 34px;
    }

    .exam-card-bg {
        left: 48px;
        right: 18px;
    }

    .exam-card-front {
        padding-left: 20px;
    }

    .exam-card-front h3 {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.05;
    }

    .exam-card-front h3.is-long-one-line {
        font-size: clamp(32px, 9vw, 40px);
        line-height: 1.05;
        white-space: normal;
        overflow-wrap: normal;
    }
}

.workbench {
    position: relative;
    width: max(100vw, calc(100svh * 1672 / 941));
    aspect-ratio: var(--desk-ratio);
    isolation: isolate;
}

.workbench-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

.keyspot {
    position: absolute;
    z-index: 2;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.keyspot::before,
.keyspot::after {
    content: "";
    position: absolute;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.keyspot::before {
    inset: 10% 8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 55%,
            rgba(255, 240, 168, 0.72) 0%,
            rgba(255, 204, 84, 0.42) 38%,
            rgba(255, 184, 58, 0.12) 66%,
            transparent 76%);
    filter: blur(13px);
    mix-blend-mode: screen;
    opacity: 0.28;
}

.keyspot::after {
    inset: 0;
    background: var(--glow);
    filter: blur(5px);
    mix-blend-mode: screen;
    opacity: 0.12;
    -webkit-mask: var(--mask) center / contain no-repeat;
    mask: var(--mask) center / contain no-repeat;
}

.keyspot:hover::before,
.keyspot.is-active::before,
.keyspot:focus-visible::before {
    opacity: 0.9;
    transform: scale(1.12);
    filter: blur(17px);
    animation: key-glow 1.9s ease-in-out infinite;
}

.keyspot:hover::after,
.keyspot.is-active::after,
.keyspot:focus-visible::after {
    background: var(--glow-hot);
    opacity: 0.44;
    transform: scale(1.03);
}

.keyspot:focus-visible {
    outline: 2px solid rgba(255, 232, 134, 0.95);
    outline-offset: 4px;
}

.keyspot-teknofest {
    left: 28.110%;
    top: 43.039%;
    width: 18.301%;
    height: 32.093%;
    --mask: url("../img/teknofest-Photoroom.png");
}

.keyspot-tubitak {
    left: 44.438%;
    top: 43.890%;
    width: 13.457%;
    height: 34.006%;
    --mask: url("../img/tubitak-Photoroom.png");
}

.keyspot-first {
    left: 57.177%;
    top: 47.503%;
    width: 13.816%;
    height: 31.881%;
    --mask: url("../img/first-Photoroom.png");
}

.achievement-panel {
    position: absolute;
    z-index: 4;
    width: clamp(420px, 50vw, 720px);
    height: clamp(200px, 24vw, 360px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 180ms ease, transform 180ms ease;
}

.achievement-panel.is-open {
    opacity: 1;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
}

.panel-teknofest {
    left: 37.8%;
    top: 51.7%;
}

.panel-tubitak {
    left: 53.4%;
    top: 51.5%;
}

.panel-tubitak .polaroid:nth-child(1) {
    --x: calc(-50% - clamp(67px, 7.25vw, 109px));
    --y: calc(-50% - clamp(32px, 3.8vw, 58px));
    --rot: -5deg;
}

.panel-tubitak .polaroid:nth-child(2) {
    --x: calc(-50% + clamp(67px, 7.25vw, 109px));
    --y: calc(-50% - clamp(24px, 3vw, 48px));
    --rot: 4deg;
}

.panel-first {
    left: 64.1%;
    top: 53.2%;
}

.panel-first .polaroid:nth-child(1) {
    --x: calc(-50% - clamp(67px, 7.25vw, 109px));
    --y: calc(-50% - clamp(32px, 3.8vw, 58px));
    --rot: -5deg;
}

.panel-first .polaroid:nth-child(2) {
    --x: calc(-50% + clamp(67px, 7.25vw, 109px));
    --y: calc(-50% - clamp(24px, 3vw, 48px));
    --rot: 4deg;
}

.polaroid {
    --x: -50%;
    --y: -50%;
    --rot: 0deg;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    width: clamp(140px, 13vw, 210px);
    padding: clamp(8px, 0.82vw, 11px) clamp(8px, 0.82vw, 11px) clamp(9px, 0.95vw, 14px);
    background: #f8efe3;
    color: #2a2018;
    border-radius: 2px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.72) rotate(0deg);
    transition:
        opacity 260ms ease calc(var(--i) * 120ms),
        transform 260ms ease calc(var(--i) * 120ms);
}

.achievement-panel.is-open .polaroid {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--rot));
}

.polaroid:nth-child(1) {
    --x: calc(-50% - clamp(115px, 13vw, 200px));
    --y: calc(-50% - clamp(14px, 3vw, 48px));
    --rot: -7deg;
    z-index: 3;
}

.polaroid:nth-child(2) {
    --x: -50%;
    --y: calc(-50% - clamp(72px, 8.4vw, 130px));
    --rot: 3deg;
    z-index: 2;
}

.polaroid:nth-child(3) {
    --x: calc(-50% + clamp(115px, 13vw, 200px));
    --y: calc(-50% - clamp(10px, 2.4vw, 40px));
    --rot: -2deg;
    z-index: 1;
}

.polaroid-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1.18 / 1;
    margin-bottom: clamp(4px, 0.45vw, 7px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 46%),
        linear-gradient(135deg, #453932, #201815);
}

.polaroid-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.polaroid p {
    margin: 0;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(9px, 0.92vw, 12px);
    line-height: 1.25;
    color: #2a2018;
}

.polaroid strong {
    display: block;
    margin-bottom: 2px;
    font-size: clamp(11px, 1.05vw, 14px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.award-split {
    display: block;
    padding: 3px 0;
}

.award-split + .award-split {
    border-top: 1px solid rgba(42, 32, 24, 0.22);
}

.polaroid em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-weight: 700;
    color: #c44400;
    font-size: clamp(10px, 0.95vw, 13px);
    letter-spacing: 0.3px;
}

@keyframes key-glow {
    0%,
    100% {
        opacity: 0.42;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.68;
        transform: scale(1.06);
    }
}

@media (max-width: 760px) {
    body {
        background: #0d0907;
    }

    .site-nav {
        top: 14px;
        max-width: calc(100vw - 16px);
        padding: 9px 12px 11px;
    }

    .site-nav::before,
    .site-nav::after {
        width: 40px;
        height: 16px;
        top: -8px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding: 3px 5px;
        font-size: 15px;
    }

    .nav-links a::after {
        height: 8px;
        bottom: 3px;
    }

    .nav-links a > span:first-child {
        display: none;
    }

    .about-section {
        padding: 70px 18px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .project-card,
    .project-card:nth-child(3) {
        grid-column: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        transform: none;
    }

    .project-card:nth-child(3) .project-photo,
    .project-photo {
        min-height: 0;
        aspect-ratio: 1.28 / 1;
    }

    .project-copy {
        padding: 18px 18px 20px;
    }

    .portrait-wrap {
        width: min(360px, 100%);
        padding: 34px 22px 48px;
    }

    .portrait-frame {
        grid-template-rows: minmax(0, 1fr) 78px;
        min-height: 0;
        width: 100%;
        padding: 16px 16px 0;
    }

    .portrait-fallback {
        top: 16px;
        left: 16px;
        right: 16px;
        bottom: 78px;
    }

    .sticker {
        width: 42px;
        height: 42px;
    }

    .sticker-1 {
        top: 12px;
        right: 10px;
    }

    .sticker-2 {
        bottom: 18px;
        left: 12px;
    }

    .sticker-5 {
        right: 14px;
        bottom: 20px;
    }

    .sticker-6 {
        top: 10px;
        left: 12px;
    }

    .sticker-3, .sticker-7 {
        display: none;
    }

    .achievement-panel {
        width: clamp(330px, 84vw, 440px);
        height: clamp(160px, 48vw, 230px);
    }

    .polaroid {
        width: clamp(110px, 30vw, 150px);
    }

    .polaroid:nth-child(1) {
        --x: calc(-50% - clamp(76px, 22vw, 108px));
        --y: calc(-50% - clamp(8px, 2.4vw, 22px));
    }

    .polaroid:nth-child(2) {
        --y: calc(-50% - clamp(56px, 17vw, 84px));
    }

    .polaroid:nth-child(3) {
        --x: calc(-50% + clamp(76px, 22vw, 108px));
        --y: calc(-50% - clamp(6px, 2vw, 18px));
    }

    .panel-tubitak .polaroid:nth-child(1) {
        --x: calc(-50% - clamp(58px, 16.8vw, 82px));
        --y: calc(-50% - clamp(22px, 6vw, 34px));
    }

    .panel-tubitak .polaroid:nth-child(2) {
        --x: calc(-50% + clamp(58px, 16.8vw, 82px));
        --y: calc(-50% - clamp(16px, 4.5vw, 28px));
    }

    .panel-first .polaroid:nth-child(1) {
        --x: calc(-50% - clamp(58px, 16.8vw, 82px));
        --y: calc(-50% - clamp(22px, 6vw, 34px));
    }

    .panel-first .polaroid:nth-child(2) {
        --x: calc(-50% + clamp(58px, 16.8vw, 82px));
        --y: calc(-50% - clamp(16px, 4.5vw, 28px));
    }

    .desk-stage {
        height: 100svh;
        display: grid;
        place-items: center;
        padding: 0;
        overflow: hidden;
    }

    .workbench {
        width: 100vw;
        height: 100svh;
        aspect-ratio: auto;
    }

    .workbench-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% center;
    }
}
