/* ========================================================================== 
   ELIN·DESIGN — PUBLIC PORTFOLIO
   --------------------------------------------------------------------------
   The layout deliberately uses pixel-based design tokens so the visual system
   can be tuned later without hunting through the stylesheet.

   Replaceable visual skins are SVG/PNG files configured in app/config.inc.php:
   project folder, detail folder, experience folder, hiring shape, arrows, etc.
   No folder geometry is hard-coded with clip-path.
   ========================================================================== */

:root {
    --page-bg: #E9E9E9;
    --header-bg: #ececec;
    --ink: #454545;
    --ink-mid-gray: #626262;
    --ink-soft: #828282;
    --accent: #D86B48;
    --white: #FAFAFA;
    --folder-fill: #f7f7f7;
    --folder-border: #cfcfcf;
    --dark: #252525;

    --link: #454545;
    --link-hover: #d66a49;
    --link-active: #d66a49;

    --menu-bg: var(--Tab-gradient-bg, linear-gradient(180deg, #E3E3E3 0%, #DFDFDF 50%, #DADADA 100%));
    --menu-border: #CCC;
    --menu-text: #454545;
    --menu-hover: #262626;
    --menu-active-bg: var(--Gray-gradient-bg, linear-gradient(180deg, #5E5E5E 0%, #575757 50%, #505050 100%));
    --menu-active-text: #FAFAFA;

    --mid-gray-4dark-bg: #CFCFCF;
    --light-gray-4dark-bg: #A4A4A4;

    --dot: #d6d6d6;
    --dot-hover: #9b9b9b;
    --dot-active: #515151;

    /* Header logo pieces are separate so each can be tuned independently. */
    --brand-elin: #242424;
    --brand-design: #454545;

    /* Dark liquid-metal button palette. */
    --metal-black: #08090a;
    --metal-dark: #151719;
    --metal-mid: #4a4f53;
    --metal-light: #d8dde0;

    --content-width: 1320px;
    --header-height: 68px;
}


/* 1. Regular Style (Weight 400) */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2. SemiBold Style (Weight 600) */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 3. Italic Style (Weight 400) */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/IBMPlexMono-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}



* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}
a { color: var(--link); text-decoration: none; transition: color 180ms ease, opacity 180ms ease; }
a:hover { color: var(--link-hover); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.svg-filters { position: absolute; width: 0; height: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   Typography presets — copied from the supplied design specification.
   -------------------------------------------------------------------------- */
.t-h2 { font-family: Sora, Arial, sans-serif; font-size: 60px; font-style: normal; font-weight: 600; line-height: 66px; text-transform: uppercase; }
.t-h3 { font-family: Sora, Arial, sans-serif; font-size: 40px; font-style: normal; font-weight: 600; line-height: 44px; text-transform: uppercase; }
.t-h4 { font-family: Sora, Arial, sans-serif; font-size: 28px; font-style: normal; font-weight: 600; line-height: 31px; text-transform: uppercase; }
.t-big-tag { font-family: "IBM Plex Mono", monospace; font-size: 16px; font-style: normal; font-weight: 600; line-height: 18px; text-transform: uppercase; }
.t-big-body { font-family: Manrope, Arial, sans-serif; font-size: 18px; font-style: normal; font-weight: 500; line-height: 29px; }
.t-accent-body { font-family: "IBM Plex Mono", monospace; font-size: 18px; font-style: italic; font-weight: 400; line-height: 29px; letter-spacing: -1.6px; }
.t-small-body { font-family: Manrope, Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: 500; line-height: 22px; }
.t-medium-body { font-family: Manrope, Arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 500; line-height: 26px; }
.t-help { font-family: Manrope, Arial, sans-serif; font-size: 12px; font-style: normal; font-weight: 500; line-height: 12px; }
.t-small-tag { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-style: normal; font-weight: 600; line-height: 13px; text-transform: uppercase; }
.t-big-number { font-family: "IBM Plex Mono", monospace; font-size: 40px; font-style: normal; font-weight: 600; line-height: 40px; font-variant-numeric: stacked-fractions slashed-zero; }
.t-big-button { font-family: Sora, Arial, sans-serif; font-size: 18px; font-style: normal; font-weight: 600; line-height: 18px; text-transform: uppercase; }
.t-button { font-family: Sora, Arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 600; line-height: 16px; text-transform: uppercase; text-align: center; font-feature-settings: 'liga' off, 'clig' off; }
.t-menu { font-family: Sora, Arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 400; line-height: 16px; text-transform: uppercase; font-feature-settings: 'liga' off, 'clig' off; }

/* --------------------------------------------------------------------------
   Persistent-header page transitions

   Internal project/language navigation fetches the next document and replaces
   only .page-shell. The sticky header never unloads. Modern browsers use the
   View Transitions API; the CSS classes below are the graceful fallback.
   -------------------------------------------------------------------------- */
.page-shell {
    min-height: calc(100vh - var(--header-height));
    view-transition-name: portfolio-content;
}
.page-shell.is-page-leaving {
    opacity: 0;
    transform: translateY(10px) scale(.997);
    filter: blur(5px);
    transition: opacity 150ms ease, transform 180ms cubic-bezier(.4,0,1,1), filter 150ms ease;
}
.page-shell.is-page-entering {
    animation: page-shell-enter 360ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes page-shell-enter {
    from { opacity: 0; transform: translateY(12px) scale(.998); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes route-progress {
    0% { transform: scaleX(0); transform-origin: left center; opacity: .9; }
    55% { transform: scaleX(.68); transform-origin: left center; opacity: 1; }
    100% { transform: scaleX(1); transform-origin: left center; opacity: .25; }
}
@keyframes vt-old-content {
    to { opacity: 0; transform: translateY(8px) scale(.997); filter: blur(4px); }
}
@keyframes vt-new-content {
    from { opacity: 0; transform: translateY(12px) scale(.998); filter: blur(5px); }
    to { opacity: 1; transform: none; filter: none; }
}
::view-transition-old(portfolio-content) {
    animation: 150ms ease both vt-old-content;
}
::view-transition-new(portfolio-content) {
    animation: 360ms cubic-bezier(.16,1,.3,1) both vt-new-content;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    height: var(--header-height);
    background: rgba(236, 236, 236, 0.95);
    border-bottom: 1px solid #d3d3d3;
    backdrop-filter: blur(18px);
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0);
    pointer-events: none;
}
body.is-route-loading .site-header::after {
    opacity: 1;
    animation: route-progress 900ms cubic-bezier(.2,.7,.2,1) infinite alternate;
}
.header-inner {
    width: min(var(--content-width), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.brand {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-main {
    display: inline-flex;
    align-items: flex-end;
    font-family: Sora, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    text-transform: uppercase;
}
.brand-word { display: inline-block; }
.brand-word--elin { color: var(--brand-elin); }
.brand-word--design { color: var(--brand-design); }
.brand-separator {
    width: 8px;
    height: 8px;
    margin: 0 2px 6px;
    display: inline-flex;

    align-items: center;
    justify-content: center;
}
.brand-separator img { width: 8px; height: 8px; }
.brand-sub {
    margin-top: 4px;
    font-family: Manrope, Arial, sans-serif;
    font-weight: 500;
    line-height: 12px;
    color: var(--ink-mid-gray);
    font-size: 12px; font-style: normal; 
}
.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-link {
    font-family: Sora, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-transform: uppercase;
}

/* Language pill. The active background moves as one physical slider. */
.language-switcher {
    position: relative;
    height: 40px;
    align-items: center;
    border: 1px solid var(--menu-border);
    border-radius: 40px;
    background: var(--menu-bg);
    overflow: hidden;
    padding-right: 3px;
    gap: 4px;
}
/* The dedicated trigger exists only on mobile. On desktop the wrapper is
   box-less, so the existing horizontal pill layout stays unchanged. */
.language-mobile-trigger { display: none; }
.language-options { display: contents; }
.language-slider {
    position: absolute;
    left: 2px;
    top: 3px;
    width: 48px !important;
    height: 32px;
    border-radius: 40px;
    background: var(--menu-active-bg);
    transform: translateX(0);
    transition: transform 480ms cubic-bezier(.16,1,.3,1);
}
.language-switcher[data-active-language="no"] .language-slider { transform: translateX(34px); }
.language-option {
    padding:10px 12px;
    position: relative;
    margin-left: 3px;
    margin-bottom: 1px;
    z-index: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-content: flex-end;
    color: var(--menu-text);
    font-family: Sora, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    text-transform: uppercase;
    transition: color 320ms cubic-bezier(.16,1,.3,1), opacity 220ms ease;

}
.language-option:hover { color: var(--ink); }
.language-option.is-active { color: var(--menu-active-text); }
.language-switcher.is-pending .language-option:not(.is-active) { opacity: .62; }

/* --------------------------------------------------------------------------
   Liquid metal buttons

   The button is completely static at rest. The dark metallic texture is
   distorted by the SVG turbulence/displacement filter from header.php and the
   fluid surface only starts moving while :hover is active. Pointer movement
   changes the virtual reflection position, again only while hovered.
   -------------------------------------------------------------------------- */
.contact-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-right: 22px;
}
.liquid-metal-button {
    padding: 16px 32px 16px 24px;
    --metal-x: 48%;
    --metal-y: 30%;
    position: relative;
    isolation: isolate;
    width: 146px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--white);
    border-radius: 24px;
    background: var(--metal-black);
    transform: translateZ(0);
    cursor: pointer;
}
.liquid-metal-button--small { width: 140px; height: 44px; }
.liquid-metal-surface {
    position: absolute;
    inset: -28px;
    z-index: 0;
    border-radius: 38px;
    background:
        radial-gradient(ellipse 48% 62% at var(--metal-x) var(--metal-y), rgba(248,250,251,.92) 0 5%, rgba(146,153,158,.46) 11%, rgba(27,30,32,.10) 26%, transparent 42%),
        radial-gradient(ellipse 36% 55% at calc(var(--metal-x) + 31%) calc(var(--metal-y) + 38%), rgba(0,0,0,.96) 0 18%, rgba(94,100,104,.36) 31%, transparent 50%),
        radial-gradient(ellipse 32% 44% at calc(var(--metal-x) - 34%) calc(var(--metal-y) + 47%), rgba(197,204,208,.66) 0 8%, rgba(28,31,33,.28) 31%, transparent 54%),
        conic-gradient(from 214deg at 50% 48%, #070809 0deg, #25292c 38deg, #a4aaae 64deg, #202326 93deg, #070809 129deg, #666d71 165deg, #0b0c0d 214deg, #c7cdd0 250deg, #2d3235 286deg, #08090a 330deg, #070809 360deg);
    background-blend-mode: screen, multiply, screen, normal;
    filter: url(#liquid-metal-filter) contrast(1.16) brightness(.88);
    transform: scale(1.17) translate3d(0,0,0) rotate(-2deg);
    will-change: transform, background-position;
    pointer-events: none;
}
.liquid-metal-button::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 1;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 72% 55% at var(--metal-x) 0%, rgba(255,255,255,.18), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,.07), transparent 42%, rgba(0,0,0,.22));
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.12),
        inset 8px 6px 15px rgba(255,255,255,.05),
        inset -10px -8px 16px rgba(0,0,0,.34);
    pointer-events: none;
}
.liquid-metal-button::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 14px;
    top: 4px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(238,243,246,.56) 38%, rgba(255,255,255,.72) 52%, transparent 78%);
    opacity: .58;
    filter: blur(1.4px);
    pointer-events: none;
}
.liquid-metal-label {
    position: relative;
    z-index: 3;
    color: var(--white);
    font-family: Sora, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
}
.liquid-metal-button:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        inset 0 -1px 0 rgba(0,0,0,.92),
        inset 10px 0 20px rgba(255,255,255,.055),
        inset -12px 0 24px rgba(0,0,0,.52),
        0 5px 13px rgba(0,0,0,.24);
}
.liquid-metal-button:hover .liquid-metal-surface {
    animation: liquid-metal-flow 1450ms cubic-bezier(.45,.05,.2,.98) infinite alternate;
}
@keyframes liquid-metal-flow {
    0% {
        transform: scale(1.19) translate3d(-3px, 1px, 0) rotate(-2.8deg);
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    45% {
        transform: scale(1.23) translate3d(5px, -3px, 0) rotate(1.4deg);
        background-position: 9px -4px, -7px 5px, 6px 8px, 12px -7px;
    }
    100% {
        transform: scale(1.20) translate3d(-2px, 4px, 0) rotate(2.2deg);
        background-position: -8px 7px, 9px -5px, -5px -6px, -10px 8px;
    }
}
.contact-photo {
    position: absolute;
    z-index: 5;
    right: 0;
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    border-radius: 50%;
    object-fit: cover;
    border:1px solid var(--white);
    pointer-events: none;
}
.contact-cta--hiring { padding-right: 14px; }
.contact-cta--hiring .liquid-metal-label { 
    color: var(--brand-elin); 
    font-family: Sora, Arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 600; line-height: 16px; text-transform: uppercase; text-align: center; font-feature-settings: 'liga' off, 'clig' off; 
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* Mobile experience destination slots are inert on desktop.
   JavaScript activates them only below the existing 680px portrait breakpoint. */
.hero-meta-experience-row { display: contents; }
.mobile-experience-meta,
.mobile-experience-scroll { display: none; }

.hero-section { overflow: hidden; padding-bottom: 200px;}
.hero-stage {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: 730px;
    margin: 0 auto;
    padding-top: 80px;
    display: grid;
    grid-template-columns: 712px 639px;
    column-gap: 118px;
    align-items: center;
}
.hero-copy { padding-top: 22px; }
.hero-name { width: 712px; max-width: none; }
.hero-role {
    margin: 52px 0 12px;
    color: var(--accent);
    font-family: Sora, Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 40px; font-style: normal; line-height: 44px;
}
.hero-meta {
    min-height: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px; font-style: normal; line-height: 18px; 
}
.hero-meta img { width: 8px; height: 8px; }
.hero-body {
    margin: 60px 0 0;
    max-width: 680px;
    font-family: Manrope, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 29px;
}
.hero-body em {
    font-family: "IBM Plex Mono", monospace;
    color: var(--ink-mid-gray);
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: -1.6px;
}
.hero-art {
    position: relative;
    width: 639px;
    height: 650px;
}
.mars-orb {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 639px;
    height: 650px;
    border-radius: 50%;
    object-fit: cover;
}
.experience-folder {
    position: absolute;
    z-index: 3;
    left: -52px;
    top: 430px;
    width: 318px;
    height: 248px;
    display: block;
    color: var(--ink);
}
.experience-folder:hover { color: var(--ink); }
.experience-folder-skin {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
.experience-content {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 16px;
}
.experience-content strong {
    display: block;
    font-family: 'IBM Plex Mono', monospace ;
    font-size: 40px;
    font-weight: 600;
    line-height: 40px;
    font-variant-numeric: stacked-fractions slashed-zero;
    color: var(--ink-soft);
}
.experience-content span {
    display: block;
    margin-top: 4px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 13px;
    letter-spacing: -2.2%;
    text-transform: uppercase;
}
.experience-scroll {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: Sora, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-transform: uppercase;
    font-style: normal; 
    color:var(--brand-elin);
}
.experience-scroll img { width: 12px; height: 16px; }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.projects-section {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 8px auto 0;
    scroll-margin-top: 96px;
}
.projects-grid {
    display: grid;
    grid-template-columns: 652px 652px;
    column-gap: 16px;
    row-gap: 60px;
}
.project-card {
    min-width: 0;
    opacity: 1;
    transform: none;
    transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}
body.is-js .project-card { opacity: 0; transform: translateY(18px); }
body.is-js .project-card.is-revealed { opacity: 1; transform: none; }
.project-card.is-filtered-out { display: none; }
.project-folder {
    position: relative;
    width: 652px;
    height: 408px;
}
.folder-skin {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.project-folder:not(.project-folder--coming-soon) > .folder-skin {
    z-index: 2;
}
.project-folder-link {
    position: absolute;
    z-index: 3;
    inset: 0;
}
.project-admin-status {
    position: absolute;
    z-index: 6;
    top: 16px;
    left: 17px;
    min-height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: #9a4b37;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 11px;
    text-transform: uppercase;
    pointer-events: none;
}
.project-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    overflow: hidden;
    clip-path: polygon(
        6.2021% 0.1222%,
        91.9602% 0.1222%,
        98.0858% 9.9022%,
        98.0858% 59.78%,
        99.9234% 62.7139%,
        99.9234% 89.6088%,
        89.7991% 99.8778%,
        3.7519% 99.8778%,
        0.0766% 96.2103%,
        0.0766% 20.1711%,
        4.3645% 9.4132%,
        4.3645% 3.0562%
    );
}
.project-slide,
.project-detail-slide {
    position: absolute;
    inset: 0;

    object-fit: contain;
    opacity: 0;
    transform: scale(.994);
    transition: opacity 280ms ease, transform 340ms ease;
}
.project-slide {
    object-fit: cover;
    transform: scale(var(--media-scale-inactive, .994));
}
.project-slide.is-active { opacity: 1; transform: scale(var(--media-scale, 1)); }
.project-detail-slide.is-active { opacity: 1; transform: scale(1); }
.project-dots {
    position: absolute;
    z-index: 5;
    bottom: 66px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.project-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--dot);
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}
.project-dot:hover { background: var(--dot-hover); transform: scale(1.08); }
.project-dot.is-active { background: var(--dot-active); }
.project-role-line {
    min-height: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px; font-style: normal; line-height: 13px;
}
.project-role-line > span { color: var(--ink-soft);  }
.project-role-line strong { color: var(--accent); }
.tag-separator { width: 7px; height: 7px; }
.project-title {
    max-width: 480px;
    margin: 8px auto 0;
    text-align: center;
    font-family: Sora, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 31px;
    text-transform: uppercase;
}
.project-title a { color: var(--ink); }
.project-title a:hover { color: var(--accent); }
.project-description {
    margin: 8px 20px 0;
    color: var(--ink-mid-gray);
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}
.project-folder--coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-folder--coming-soon span {
    position: relative;
    z-index: 1;
    font-family: Sora, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 18px;
    text-transform: uppercase;
}
.project-card--coming-soon { align-self: start; }

/* 40px total height, matching the supplied floating-menu reference. */
.floating-filter {
    position: fixed;
    z-index: 110;
    left: 50%;
    bottom: 20px;
    height: 40px;
    max-width: calc(100% - 20px);
    padding: 0px 4px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 4px;
    border: 1px solid var(--menu-border);
    border-radius: 40px;
    background: var(--Tab-gradient-bg, linear-gradient(180deg, #E3E3E3 0%, #DFDFDF 50%, #DADADA 100%));
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 14px);
    transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
    scrollbar-width: none;
}
.floating-filter::-webkit-scrollbar { display: none; }
.floating-filter.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.filter-option {
    flex: 0 0 auto;
    height: 32px;
    padding: 10px 12px;
    padding-bottom: 6px;
    border: 0;
    border-radius: 40px;
    background: transparent;
    color: var(--menu-text);
    cursor: pointer;
    font-family: Sora, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    text-transform: uppercase;
    transition: color 160ms ease, background 180ms ease, transform 180ms ease;
}
.filter-option:hover { color: var(--menu-hover); }
.filter-option:active { transform: scale(.98); }
.filter-option.is-active { color: var(--menu-active-text); background: var(--menu-active-bg); }

/* --------------------------------------------------------------------------
   Hiring section + footer
   -------------------------------------------------------------------------- */
.hiring-section {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 180px auto 0;
}
.hiring-shape {
    color: var(--white);
    position: relative;
    width: min(1321px, 100%);
    min-height: clamp(420px, 39.21vw, 518px);
    margin: 0 auto;
    isolation: isolate;
}

/* Main shape */
.hiring-shape::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -2;

    background: linear-gradient(
        to bottom,
        #2A2A2A 0%,
        #242424 30%,
        #1F1F1F 100%
    );

    clip-path: polygon(
        12.11% 0%,
        90.77% 0%,
        98.15% 7.53%,
        98.15% 56.95%,
        100% 61.78%,
        100% 90.15%,
        90.84% 100%,
        4.58% 100%,
        0% 95.17%,
        0% 30.12%,
        9.35% 9.36%,
        9.35% 2.99%,
        12.11% 0%
    );
}

/* border around the shape */
.hiring-shape::after {
    content: "";

    position: absolute;
    inset: -1px;

    z-index: -3;

    background: #454545;

    clip-path: polygon(
        12.11% 0%,
        90.77% 0%,
        98.15% 7.53%,
        98.15% 56.95%,
        100% 61.78%,
        100% 90.15%,
        90.84% 100%,
        4.58% 100%,
        0% 95.17%,
        0% 30.12%,
        9.35% 9.36%,
        9.35% 2.99%,
        12.11% 0%
    );
}

.hiring-folder-skin {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hiring-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding-top:80px;
    padding-bottom:80px;
    text-align: center;
}
.hiring-title {
    margin: 0;
    font-family: Sora, Arial, sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 66px;
    text-transform: uppercase;
}
.hiring-copy {
    max-width: 680px;
    margin: 12px auto 0;
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
    font-style: normal; 
    color:var(--mid-gray-4dark-bg);
}
.hiring-meta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--light-gray-4dark-bg);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    font-weight: 600;
    line-height: 13px;
    text-transform: uppercase;
    font-style: normal; 
}
.hiring-meta img { width: 10px; height: 10px; }
.hiring-actions {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.mini-cv-link {
    color: #ffffff;
    font-family: Sora, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-transform: uppercase;
}
.hiring-help {
    margin-top: 12px;
    color: var(--light-gray-4dark-bg);
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    line-height: 12px;
    font-style: normal; 
    font-weight: 500; 
}
.site-footer {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 40px auto 40px;
    text-align: center;
}
.footer-copy {
    max-width: 980px;
    margin: 0 auto 12px;
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    font-style: normal;
    color:var(--ink);
}

.footer-copy.name {
    color:var(--ink-mid-gray);
}

/* --------------------------------------------------------------------------
   Project detail page
   -------------------------------------------------------------------------- */
.project-detail-hero {
    position: relative;
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
    padding-top: 60px;
}
.back-button {
    position: absolute;
    top: 40px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color:var(--brand-elin);
}
.back-button img {
    width: 44px;
    height: 44px;
    transition: transform 180ms ease;
}
.back-button:hover img { transform: translateX(-3px); }
.project-detail-title {
    max-width: 1098px;
    margin: 60px auto  20px;
    text-align: center;
    font-family: Sora, Arial, sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 66px;
    text-transform: uppercase;
    color:var(--brand-elin);
}
.project-detail-folder {
    position: relative;
    width: 1240px;
    height: 720px;
    margin: 110px auto 0;
}
.project-detail-media {
    position: absolute;
    z-index: 1;
    left: 92px;
    right: 120px;
    top: 78px;
    bottom: 76px;
    overflow: hidden;
}
.project-dots--detail {
    right: 14px;
    gap: 10px;
}
.project-detail-copy {
    max-width: 820px;
    margin: 55px auto 0;
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
}
.project-live-link {
    display: table;
    margin: 26px auto 0;
    font-family: Sora, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
}
.similar-projects {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 420px auto 0;
}
.admin-preview-badge {
    display: table;
    margin: -34px auto 22px;
    padding: 7px 12px;
    border-radius: 14px;
    background: #9a4b37;
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    line-height: 13px;
}
.not-found {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    place-content: center;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Admin login popup
   -------------------------------------------------------------------------- */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.admin-modal.is-open { display: flex; }
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20,20,20,.58);
    backdrop-filter: blur(12px);
}
.admin-login-card {
    position: relative;
    z-index: 1;
    width: 430px;
    max-width: 100%;
    padding: 38px;
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 22px;
    background: rgba(246,246,246,.96);
    box-shadow: 0 34px 90px rgba(0,0,0,.28);
}
.admin-login-card h2 {
    margin: 0 0 24px;
    font-family: Sora, Arial, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 31px;
    text-transform: uppercase;
}
.admin-login-card label {
    display: block;
    margin: 15px 0;
    color: #505050;
    font-family: Manrope, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}
.admin-login-card input {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 7px;
    padding: 0 13px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.admin-login-card input:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.admin-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 28px;
    line-height: 30px;
}
.admin-submit {
    min-height: 44px;
    margin-top: 9px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 22px;
    background: #282828;
    color: #ffffff;
    cursor: pointer;
    font-family: Sora, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
}
.admin-submit:hover { color: #fff; background: #3a3a3a; }
.admin-login-error { color: #9d402f; font-size: 13px; line-height: 18px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1380px) {
    .header-inner,
    .projects-section,
    .hiring-section,
    .site-footer,
    .project-detail-hero,
    .similar-projects { width: calc(100% - 48px); }

    .hero-stage {
        width: calc(100% - 48px);
        grid-template-columns: 640px 570px;
        column-gap: 96px;
    }
    .hero-name { width: 640px; }
    .hero-art { width: 570px; height: 620px; }
    .mars-orb { width: 570px; height: 570px; }
    .experience-folder { top: 392px; }

    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
    .project-folder { width: 100%; height: 370px; }
    .project-detail-folder { width: calc(100% - 70px); }
}

@media (max-width: 1120px) {
    :root { --header-height: 72px; }
    .hero-stage {
        min-height: 760px;
        grid-template-columns: 540px 470px;
        column-gap: 54px;
        padding-top: 78px;
    }
    .hero-name { width: 540px; }
    .hero-role { font-size: 28px; line-height: 34px; }
    .hero-body { margin-top: 46px; font-size: 16px; line-height: 26px; }
    .hero-body em { font-size: 16px; line-height: 26px; }
    .hero-art { width: 470px; height: 540px; }
    .mars-orb { width: 470px; height: 470px; }
    .experience-folder { left: -34px; top: 326px; width: 282px; height: 168px; }
    .experience-content strong { font-size: 35px; line-height: 35px; }
    .experience-scroll { bottom: 18px; font-size: 13px; line-height: 15px; }

    .project-folder { height: 330px; }
    .project-title { font-size: 24px; line-height: 28px; }
    .hiring-title { font-size: 52px; line-height: 58px; }
    .project-detail-title { font-size: 52px; line-height: 58px; }
    .project-detail-folder { height: 650px; }
}

@media (max-width: 940px) {
    .header-inner { width: calc(100% - 28px); }
    .brand-main { font-size: 20px; line-height: 24px; }
    .brand-sub { display: none; }
    .header-actions { gap: 14px; }
    .header-link { display: none; }

    .hero-stage {
        width: calc(100% - 32px);
        min-height: auto;
        padding-top: 50px;
        display: block;
    }
    .hero-copy { padding-top: 0; }
    .hero-name { width: min(690px, 100%); }
    .hero-art { width: 620px; max-width: 100%; height: 570px; margin: 55px auto 0; }
    .mars-orb { left: auto; right: -95px; width: 540px; height: 540px; }
    .experience-folder { left: 0; top: 350px; width: 300px; height: 178px; }

    .projects-section { width: calc(100% - 32px); margin-top: 65px; }
    .projects-grid { grid-template-columns: 1fr; row-gap: 86px; }
    .project-folder { width: min(634px, 100%); height: 390px; margin: 0 auto; }
    .project-description { max-width: 634px; margin-left: auto; margin-right: auto; }

    .hiring-section { width: calc(100% - 32px); margin-top: 130px; }
    .hiring-shape { height: 440px; }
    .hiring-content { padding: 67px 40px 45px; }
    .hiring-title { font-size: 48px; line-height: 54px; }

    .project-detail-hero { width: calc(100% - 32px); padding-top: 92px; }
    .back-button { top: 24px; }
    .project-detail-title { font-size: 44px; line-height: 50px; }
    .project-detail-folder { width: 100%; height: 560px; margin-top: 78px; }
    .project-detail-media { left: 60px; right: 82px; top: 60px; bottom: 58px; }
    .similar-projects { width: calc(100% - 32px); margin-top: 220px; }
    .site-footer { width: calc(100% - 32px); }
}

@media (max-width: 680px) {
    :root { --header-height: 66px; }
    .header-inner { width: calc(100% - 20px); grid-template-columns: auto 1fr auto; gap: 8px; }
    .language-switcher { width: 64px; grid-template-columns: 30px 30px; }
    .language-slider { width: 29px; }
    .language-switcher[data-active-language="no"] .language-slider { transform: translateX(30px); }
    .language-option { font-size: 9px; }
    .brand-main { font-size: 15px; line-height: 18px; }
    .brand-separator { width: 5px; height: 5px; flex-basis: 5px; margin: 0 2px 3px; }
    .brand-separator img { width: 5px; height: 5px; }
    .liquid-metal-button--small { width: 92px; height: 34px; }
    .liquid-metal-label { font-size: 11px; line-height: 13px; }
    .contact-cta { padding-right: 10px; }
    .contact-photo { width: 31px; height: 31px; }

    .hero-stage { width: calc(100% - 24px); padding-top: 34px; }
    .hero-role { margin-top: 18px; font-size: 24px; line-height: 30px; }
    .hero-meta { gap: 6px; font-size: 9px; line-height: 12px; }
    .hero-meta img { width: 6px; height: 6px; }
    .hero-body { margin-top: 32px; font-size: 15px; line-height: 24px; }
    .hero-body em { font-size: 15px; line-height: 24px; letter-spacing: -1px; }
    .hero-art { height: 430px; margin-top: 32px; }
    .mars-orb { width: 420px; height: 420px; right: -150px; }
    .experience-folder { top: 242px; width: 242px; height: 144px; }
    .experience-content { top: 13px; left: 14px; }
    .experience-content strong { font-size: 31px; line-height: 31px; }
    .experience-content span { font-size: 9px; line-height: 11px; }
    .experience-scroll { bottom: 14px; gap: 5px; font-size: 10px; line-height: 12px; }
    .experience-scroll img { width: 9px; height: 13px; }

    .projects-section { width: calc(100% - 24px); margin-top: 40px; }
    .projects-grid { row-gap: 76px; }
    .project-folder { width: min(634px, 100%); height: auto; aspect-ratio: 634 / 390; }
    .project-media { inset: 0; }
    .project-dots { right: 7px; gap: 7px; }
    .project-dot { width: 7px; height: 7px; }
    .project-role-line { margin-top: 17px; gap: 5px; font-size: 9px; }
    .project-title { margin-top: 7px; font-size: 23px; line-height: 27px; }
    .project-description { margin-top: 16px; font-size: 13px; line-height: 21px; }
    .project-folder--coming-soon span { font-size: 13px; }

    .floating-filter { bottom: 10px; }
    .filter-option { padding: 0 13px; font-size: 13px; }

    .hiring-section { width: calc(100% - 24px); margin-top: 105px; }
    .hiring-shape { height: 410px; }
    .hiring-content { padding: 62px 24px 40px; }
    .hiring-title { font-size: 38px; line-height: 42px; }
    .hiring-copy { margin-top: 17px; font-size: 12px; line-height: 19px; }
    .hiring-meta { margin-top: 20px; gap: 6px; font-size: 8px; line-height: 11px; }
    .hiring-actions { margin-top: 24px; gap: 15px; }
    .mini-cv-link { font-size: 11px; }
    .contact-cta--hiring .liquid-metal-button { width: 126px; height: 38px; }

    .project-detail-hero { width: calc(100% - 24px); padding-top: 82px; }
    .back-button { top: 18px; gap: 8px; font-size: 12px; }
    .back-button img { width: 38px; height: 38px; }
    .project-detail-title { font-size: 34px; line-height: 39px; }
    .project-detail-folder { height: auto; aspect-ratio: 1240 / 720; margin-top: 62px; }
    .project-detail-media { left: 38px; right: 52px; top: 40px; bottom: 38px; }
    .similar-projects { width: calc(100% - 24px); margin-top: 140px; }
    .site-footer { width: calc(100% - 24px); }
    .footer-copy { font-size: 10px; line-height: 15px; }
}

@media (max-width: 420px) {
    .header-inner { width: calc(100% - 14px); }
    .language-switcher { width: 58px; grid-template-columns: 27px 27px; }
    .language-slider { width: 26px; }
    .language-switcher[data-active-language="no"] .language-slider { transform: translateX(27px); }
    .brand-main { font-size: 13px; line-height: 16px; }
    .brand-separator { width: 4px; height: 4px; flex-basis: 4px; margin: 0 2px 3px; }
    .brand-separator img { width: 4px; height: 4px; }
    .liquid-metal-button--small { width: 78px; }
    .contact-photo { width: 26px; height: 26px; }
    .contact-cta { padding-right: 8px; }

    .hero-stage { width: calc(100% - 18px); }
    .hero-role { font-size: 21px; line-height: 27px; }
    .hero-meta { font-size: 8px; }
    .hero-body { font-size: 14px; line-height: 23px; }
    .hero-body em { font-size: 14px; line-height: 23px; }
    .hero-art { height: 390px; }
    .mars-orb { width: 380px; height: 380px; right: -158px; }
    .experience-folder { top: 220px; width: 218px; height: 130px; }

    .projects-section { width: calc(100% - 18px); }
    .project-folder { height: auto; aspect-ratio: 634 / 390; }
    .project-media { inset: 0; }
    .project-title { font-size: 20px; line-height: 24px; }
    .project-description { margin-left: 4px; margin-right: 4px; }

    .filter-option { padding: 0 12px; font-size: 12px; }

    .hiring-section { width: calc(100% - 18px); }
    .hiring-shape { height: 390px; }
    .hiring-content { padding: 58px 18px 34px; }
    .hiring-title { font-size: 32px; line-height: 36px; }
    .hiring-actions { gap: 10px; }

    .project-detail-hero { width: calc(100% - 18px); }
    .project-detail-title { font-size: 29px; line-height: 34px; }
    .project-detail-folder { height: auto; aspect-ratio: 1240 / 720; }
    .project-detail-media { left: 30px; right: 42px; top: 32px; bottom: 31px; }
    .similar-projects { width: calc(100% - 18px); }
    .site-footer { width: calc(100% - 18px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


@media (prefers-reduced-motion: reduce) {
    .page-shell.is-page-entering { animation: none; }
    .liquid-metal-button:hover .liquid-metal-surface { animation: none; }
    body.is-route-loading .site-header::after { animation: none; transform: scaleX(1); opacity: .45; }
}

/* v3.2 locked-project HTML content: the selected root HTML file is rendered in-place
   while the portfolio header / hiring CTA / footer remain persistent. */
.locked-project-page {
    width: 100%;
    min-height: 620px;
    background: var(--page-bg, #e8e8e8);
}
.locked-project-frame {
    display: block;
    width: 100%;
    height: 720px;
    min-height: 620px;
    border: 0;
    background: transparent;
}
.locked-project-fallback {
    width: 1320px;
    max-width: calc(100% - 48px);
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    place-content: center;
    text-align: center;
}
.locked-project-fallback h1 { margin: 0 0 14px; }
.locked-project-fallback p { margin: 0; }
@media (max-width: 600px) {
    .locked-project-page,
    .locked-project-frame { min-height: 520px; }
}

/* v3.2 language switcher supports any number of admin-configured languages. */
.language-switcher {
    width: fit-content;
    display: flex;
    grid-template-columns: none;
}
.language-option { width: 48px; flex: 0 0 48px; }
.language-slider {
    width: var(--lang-slider-width, 48px);
    transform: translateX(var(--lang-slider-x, 0px));
}
.language-switcher[data-active-language="no"] .language-slider { transform: translateX(var(--lang-slider-x, 0px)); }
@media (max-width: 680px) {
    .language-switcher { width: auto; grid-template-columns: none; }
    .language-option { width: 30px; flex-basis: 30px; }
    .language-slider { width: var(--lang-slider-width, 29px); transform: translateX(var(--lang-slider-x, 0px)); }
    .language-switcher[data-active-language="no"] .language-slider { transform: translateX(var(--lang-slider-x, 0px)); }
}
@media (max-width: 420px) {
    .language-switcher { width: auto; grid-template-columns: none; }
    .language-option { width: 27px; flex-basis: 27px; }
    .language-slider { width: var(--lang-slider-width, 26px); transform: translateX(var(--lang-slider-x, 0px)); }
    .language-switcher[data-active-language="no"] .language-slider { transform: translateX(var(--lang-slider-x, 0px)); }
}
/* Server-rendered slider position prevents a first-paint jump before JS measures it. */
.language-slider { transform: translateX(var(--lang-slider-x, calc(var(--lang-index, 0) * 34px))); }
.language-switcher[data-active-language="no"] .language-slider { transform: translateX(var(--lang-slider-x, calc(var(--lang-index, 0) * 34px))); }
@media (max-width: 680px) {
    .language-slider,
    .language-switcher[data-active-language="no"] .language-slider { transform: translateX(var(--lang-slider-x, calc(var(--lang-index, 0) * 30px))); }
}
@media (max-width: 420px) {
    .language-slider,
    .language-switcher[data-active-language="no"] .language-slider { transform: translateX(var(--lang-slider-x, calc(var(--lang-index, 0) * 27px))); }
}

/* v3.2: route transitions stay smooth without the orange loading/progress line. */
body.is-route-loading .site-header::after { display: none !important; }

/* v3.21 requested project-title/media/contact additions ----------------------- */
.project-title-company { color: var(--brand-elin); }
.project-title-text { color: var(--ink); }
.project-title a:hover .project-title-company { color: var(--brand-elin); }
.project-title a:hover .project-title-text { color: var(--ink); }
.project-slide,
.project-detail-slide { width: 100%; height: 100%; }
.project-slide--video { object-fit: cover; background: transparent; }
.project-detail-slide--video { object-fit: contain; background: transparent; }
.project-slide--video[controls].is-active { z-index: 4; pointer-events: auto; }
.project-detail-slide--video[controls].is-active { z-index: 4; pointer-events: auto; }
.hiring-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: Sora, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.6px;
    text-transform: lowercase;
}
.hiring-linkedin:hover { color: #ffffff; opacity: .72; }

/* Mobile portrait match -------------------------------------------------------
   Deliberately appended after all existing responsive rules so desktop styling
   above 680px stays untouched. The values below follow mobile.png. */
@media (max-width: 680px) and (orientation: portrait) {
    :root { --header-height: 88px; }

    .site-header { height: 88px; }
    .header-inner {
        position: relative;
        width: calc(100% - 24px);
        height: 67px;
        margin: 0 auto;
        padding-top: 12px;

        /* Mobile header row:
           CV -> Contact -> Language
           All three items share one centered flex row. */
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 12px;
    }
    .brand {
        position: absolute;
        left: 50%;
        top: 62px;
        width: max-content;
        transform: translateX(-50%);
    }
    .brand-main { display: none; }
    .brand-sub {
        display: block;
        margin: 0;
        color: var(--ink-mid-gray);
        font-size: 12px;
        line-height: 12px;
        white-space: nowrap;
    }

    /*
       .language-switcher is a sibling of .header-actions in header.php.
       display: contents lets the two header-actions children participate in
       .header-inner's flex row without changing the desktop markup.
    */
    .header-actions {
        justify-self: normal;
        display: contents;
    }
    .header-link {
        position: static;
        order: 1;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        line-height: 16px;
        flex: 0 0 auto;
    }
    .header-actions .contact-cta {
        position: relative;
        order: 2;
        left: auto;
        top: auto;
        height: 44px;
        padding-right: 22px;
        transform: none;
        flex: 0 0 auto;
    }
    .header-actions .liquid-metal-button--small { width: 136px; height: 44px; }
    .header-actions .liquid-metal-label { font-size: 16px; line-height: 16px; }
    .header-actions .contact-photo { width: 44px; height: 44px; }

    /* Mobile language control stays the same size in the header at all times.
       The vertical dropdown is absolutely positioned, so opening it never
       changes the width of the centered CV / Contact / Language group. */
    .language-switcher {
        position: relative;
        order: 3;
        z-index: 20;
        top: auto;
        right: auto;
        width: auto;
        min-width: 0;
        height: 44px;
        padding: 0;
        display: block;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        flex: 0 0 auto;
    }

    .language-mobile-trigger {
        position: relative;
        z-index: 2;
        height: 44px;
        margin: 0;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
        white-space: nowrap;
        font-family: Sora, Arial, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 16px;
        text-transform: uppercase;
        transition: opacity 150ms ease;
    }
    .language-mobile-chevron {
        width: 8px;
        height: 8px;
        flex: 0 0 8px;
        border-right: 1px solid var(--ink-soft);
        border-bottom: 1px solid var(--ink-soft);
        transform: translateY(-2px) rotate(45deg);
        transform-origin: center;
        transition: opacity 150ms ease, transform 180ms ease;
        pointer-events: none;
    }

    /* The dropdown occupies no flex/grid space in the header. */
    .language-options {
        position: absolute;
        z-index: 30;
        top: 0;
        right: -5px;
        width: max-content;
        min-width: 52px;
        padding: 3px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        overflow: hidden;
        border: 1px solid var(--menu-border);
        border-radius: 22px;
        background: var(--menu-bg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-2px) scale(.96);
        transform-origin: top right;
        transition:
            opacity 150ms ease,
            transform 220ms cubic-bezier(.16, 1, .3, 1),
            visibility 150ms ease;
    }
    .language-slider { display: none; }
    .language-options .language-option {
        position: relative;
        width: auto;
        min-width: 44px;
        height: 32px;
        margin: 0;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 40px;
        color: var(--menu-text);
        font-size: 16px;
        line-height: 16px;
        flex: 0 0 auto;
        transition: color 160ms ease, background 180ms ease;
    }
    /* Keep the selected language in the trigger position when the menu opens. */
    .language-options .language-option.is-active {
        order: -1;
        color: var(--menu-active-text);
        background: var(--menu-active-bg);
    }
    .language-options .language-option:not(.is-active):hover {
        color: var(--menu-hover);
    }

    .language-switcher.is-mobile-open .language-mobile-trigger {
        opacity: 0;
        pointer-events: none;
    }
    .language-switcher.is-mobile-open .language-mobile-chevron {
        opacity: 0;
    }
    .language-switcher.is-mobile-open .language-options {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .hero-section { padding-bottom: 0; overflow: hidden; }
    .hero-stage {
        position: relative;
        width: calc(100% - 32px);
        min-height: 510px;
        height: 670px;
        margin: 0 auto;
        padding-top: 40px;
        display: block;
    }
    .hero-copy { padding-top: 0; }
    .hero-name { width: 100%; max-width: 100%; height: auto; }
    .hero-role {
        margin: 32px 0 12px;
        font-size: 26px;
        line-height: 29px;
        max-width: 288px;
    }
    .hero-meta-experience-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 16px;
    }
    .hero-meta {
        min-height: 0;
        display: grid;
        align-items: start;
        justify-items: start;
        gap: 8px;
        font-size: 14px;
        line-height: 110%;
    }
    .hero-meta img { display: none; }
    .hero-meta span {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .hero-meta span::before {
        content: "";
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
        background: url("../svg/tag-separator.svg") center / contain no-repeat;
    }

    .mobile-experience-meta {
        display: block;
        min-width: 76px;
        margin-top: 24px;
    }
    .mobile-experience-meta .experience-content {
        position: static;
        width: 76px;
        text-align: left;
    }
    .mobile-experience-meta .experience-content strong {
        font-size: 40px;
        line-height: 40px;
    }
    .mobile-experience-meta .experience-content span {
        margin-top: 1px;
        font-size: 12px;
        line-height: 13px;
        letter-spacing: -2.2%;
    }

    .hero-body {
        max-width: 100%;
        width: clamp(320px, 78vw, 520px);
        margin: 16px 0 0;
        font-size: 16px;
        line-height: 26px;
    }
    .hero-body em {
        font-size: 16px;
        line-height: 26px;
        letter-spacing: -1.6px;
    }

    .mobile-experience-scroll {
        position: relative;
        z-index: 4;
        display: block;
        width: fit-content;
        margin-top: 40px;
        color: var(--brand-elin);
        pointer-events: auto;
    }
    .mobile-experience-scroll:hover { color: var(--brand-elin); }
    .mobile-experience-scroll .experience-scroll {
        position: static;
        transform: none;
        gap: 8px;
        color: inherit;
        font-size: 16px;
        line-height: 16px;
        pointer-events: none;
    }
    .mobile-experience-scroll .experience-scroll img { width: 8px; height: 12px; }

    .hero-art {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 510px;
        margin: 0;
        pointer-events: none;
    }

    /* On mobile the folder itself is no longer used as a positioning system.
       Its two content pieces are moved into the normal hero flow above. */
    body.is-js .experience-folder { display: none; }
    .mars-orb {
        top: 470px;
        left: auto;
        right: -94px;
        width: 195px;
        height: 198px;
    }

    .projects-section {
        width: calc(100% - 32px);
        margin-top: 96px;
        scroll-margin-top: 78px;
    }
    .projects-grid { display: grid; grid-template-columns: 1fr; row-gap: 32px; }
    .project-folder {
        width: 100%;
        height: auto;
        aspect-ratio: 634 / 390;
    }
    .project-media { inset: 0; }
    .project-dots { right: 10px; bottom: 26px; gap: 8px; }
    .project-dot { width: 6px; height: 6px; }
    .project-role-line {
        min-height: 10px;
        margin-top: 16px;
        justify-content: flex-start;
        gap: 4px;
        font-size: 12px;
        line-height: 13px;
    }
    .project-title {
        max-width: none;
        margin: 8px 0 0;
        text-align: left;
        font-size: 20px;
        line-height: 22px;
    }
    .project-description {
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 21px;
    }
    .project-folder--coming-soon span { font-size: 12px; line-height: 14px; }

    .floating-filter { bottom: 8px; height: 40px; }
    .filter-option { height: 32px; padding: 0 11px; font-size: 11px; line-height: 12px; }

    .hiring-section {
        width: calc(100% - 32px);
        margin-top: 74px;
    }
    .hiring-shape { height: 473px; }
    .hiring-content { padding: 40px 24px 40px; }
    .hiring-title {
        font-size: 40px;
        line-height: 110%;
    }
    .hiring-copy {
        max-width: 280px;
        margin-top: 12px;
        font-size: 14px;
        line-height: 22px;
    }
    .hiring-meta {
        width: 210px;
        margin: 20px auto 0;
        display: grid;
        justify-content: stretch;
        justify-items: start;
        gap: 8px;
        font-size: 12px;
        line-height: 13px;
        text-align: left;
    }
    .hiring-meta img { display: none; }
    .hiring-meta span {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .hiring-meta span::before {
        content: "";
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
        background: url("../svg/tag-separator.svg") center / contain no-repeat;
    }
    .hiring-actions { margin-top: 40px; gap: 24px; }
    .mini-cv-link { font-size: 11px; line-height: 13px; }
    .contact-cta--hiring { padding-right: 22px; }
    .contact-cta--hiring .liquid-metal-button { width: 136px; height: 44px; }
    .contact-cta--hiring .contact-photo { width: 44px; height: 44px; }
    .hiring-linkedin { font-size: 14px; line-height: 15px; }
    .hiring-help { margin-top: 12px; font-size: 12px; line-height: 12px; }

    .site-footer {
        width: calc(100% - 32px);
        margin: 20px auto 8px;
    }
    .footer-copy {
        max-width: 280px;
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 19px;
    }

    /* Keep project-detail pages usable at the same mobile breakpoint without
       touching their desktop geometry. */
    .project-detail-hero { width: calc(100% - 24px); padding-top: 66px; }
    .back-button { top: 16px; }
    .project-detail-title { font-size: 28px; line-height: 32px; }
    .project-detail-folder { margin-top: 48px; }
    .project-detail-copy { margin-top: 30px; font-size: 13px; line-height: 21px; }
    .similar-projects { width: calc(100% - 24px); margin-top: 100px; }
}


/*fix background of buttons*/
/* Header contact button — custom PNG background only */
.site-header .contact-cta .liquid-metal-button {
    background: url("../img/header-contact-bg.png") center / 100% 100% no-repeat;
    border: 0;
    box-shadow: none;
}

/* Remove the generated liquid-metal layers only in header */
.site-header .contact-cta .liquid-metal-surface,
.site-header .contact-cta .liquid-metal-button::before,
.site-header .contact-cta .liquid-metal-button::after {
    display: none;
}

/* Keep hover from restoring the old effect */
.site-header .contact-cta .liquid-metal-button:hover {
    background: url("../img/header-contact-bg.png") center / 100% 100% no-repeat;
    border: 0;
    box-shadow: none;
}




.contact-cta .liquid-metal-button {
    background: url("../img/bottom-button-bg.png") center / 100% 100% no-repeat;
    border: 0;
    box-shadow: none;
}

/* Remove the generated liquid-metal texture */
.contact-cta .liquid-metal-surface {
    display: none;
}

.contact-cta .liquid-metal-button::before,
.contact-cta .liquid-metal-button::after {
    display: none;
}

/* Prevent old hover styling from coming back */
.contact-cta .liquid-metal-button:hover {
    background: url("../img/bottom-button-bg.png") center / 100% 100% no-repeat;
    border: 0;
    box-shadow: none;
}