/* =================================================================
   ADAM BOVZDARENKO — PORTFOLIO
   "Persona Menu Engine" — the whole site behaves like a game's
   pause menu. Persona 3 Reload palette: electric blue / midnight.
   ================================================================= */

@import url('font-awesome/css/font-awesome.min.css');

/* -----------------------------------------------------------------
   TOKENS
   ----------------------------------------------------------------- */
:root {
   --blue:        #38b6f0;
   --blue-bright: #8fd6f5;
   --blue-deep:   #0a5aa6;
   --blue-ink:    #052238;
   --glow:        rgba(70,170,235,.5);

   /* Persona 3 "midnight velvet" — deep electric blue, controlled glow */
   --bg-0: #03102c;   /* deep floor    */
   --bg-1: #082b62;   /* mid water     */
   --bg-2: #0e3f86;   /* upper water   */
   --bg-3: #2f7fc4;   /* surface light */

   --red:    #ec2f25;  /* selected-item accent */
   --pink:   #ff8fc4;

   --panel:  rgba(7, 38, 78, .55);
   --panel2: rgba(4, 24, 56, .82);
   --line:   rgba(150,225,255,.4);

   --ink:    #eaf6ff;
   --dim:    #bfe2ff;
   --white:  #ffffff;

   --disp: 'Saira Condensed', 'poppinsbold', sans-serif;
   --ui:   'Saira', 'poppinsmedium', sans-serif;

   --skew: -11deg;
   --ease: cubic-bezier(.16,.86,.3,1);
   --ease-snap: cubic-bezier(.6,0,.2,1);
}

/* -----------------------------------------------------------------
   RESET
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
   font-family: var(--ui);
   color: var(--ink);
   background: var(--bg-0);
   overflow: hidden;            /* the app owns the viewport */
   -webkit-font-smoothing: antialiased;
   cursor: default;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-family: var(--disp); font-weight: 800; line-height: .95; }
::selection { background: var(--blue); color: #00131f; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* -----------------------------------------------------------------
   APP SHELL + ATMOSPHERE
   ----------------------------------------------------------------- */
#app {
   position: fixed;
   inset: 0;
   overflow: hidden;
   isolation: isolate;
}

/* layered drifting background — bright underwater, navy floor */
.bg {
   position: absolute; inset: 0; z-index: 0; pointer-events: none;
   background:
      radial-gradient(110% 70% at 80% -28%, rgba(120,190,235,.42), transparent 52%),
      radial-gradient(140% 120% at 96% -12%, rgba(47,127,196,.5) 0%, transparent 48%),
      radial-gradient(120% 100% at 8% 132%, #020f2c 0%, transparent 55%),
      linear-gradient(155deg, var(--bg-2) 0%, var(--bg-1) 40%, var(--bg-0) 76%, #020c22 100%);
}
/* water-surface caustics — wavy light ripples near the top */
.bg .panel-shape {
   position: absolute; left: 0; right: 0; top: 0; height: 46vh;
   background:
      repeating-radial-gradient(ellipse 60% 22% at 70% -10%,
         rgba(150,205,240,.0) 0, rgba(150,205,240,.1) 14px, rgba(150,205,240,0) 30px);
   mix-blend-mode: screen; opacity: .45; border: none;
   mask-image: linear-gradient(180deg, #000 0%, #000 35%, transparent 100%);
   animation: caustic 18s ease-in-out infinite alternate;
}
.bg .ps2 { height: 40vh; opacity: .3;
   background: repeating-radial-gradient(ellipse 80% 26% at 40% -16%,
      rgba(220,238,255,.0) 0, rgba(220,238,255,.09) 10px, rgba(220,238,255,0) 26px);
   animation-delay: -6s; animation-duration: 24s; }
.bg .ps3 { height: 34vh; opacity: .22;
   background: repeating-radial-gradient(ellipse 50% 18% at 88% -8%,
      rgba(120,200,240,0) 0, rgba(120,200,240,.13) 8px, rgba(120,200,240,0) 22px);
   animation-delay: -11s; animation-duration: 20s; }
@keyframes caustic {
   from { transform: translateX(-3%) scaleY(1);   filter: blur(.5px); }
   to   { transform: translateX(3%)  scaleY(1.08); filter: blur(1.5px); }
}

/* deep-water vignette + faint blueprint grid */
.bg::after {
   content: ""; position: absolute; inset: 0;
   background-image:
      radial-gradient(120% 90% at 50% 120%, rgba(2,16,44,.85), transparent 60%),
      linear-gradient(rgba(190,240,255,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(190,240,255,.05) 1px, transparent 1px);
   background-size: cover, 64px 64px, 64px 64px;
   mask-image: linear-gradient(180deg, transparent, #000 30%, #000 100%);
   opacity: .8;
}
/* sun-through-water glow (top-right light source) */
.moon {
   position: absolute; top: -10vh; right: -5vw; z-index: 0;
   width: 300px; height: 300px; border-radius: 50%;
   background: radial-gradient(circle at 50% 50%, rgba(170,210,240,.4), rgba(90,160,215,.18) 40%, transparent 70%);
   filter: blur(10px); opacity: .55; pointer-events: none;
}
.moon::after { content: none; }

/* grain overlay over everything */
#app::after {
   content: ""; position: absolute; inset: 0; z-index: 60; pointer-events: none;
   opacity: .05; mix-blend-mode: overlay;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------------------
   HUD (persistent top + bottom)
   ----------------------------------------------------------------- */
.hud {
   position: absolute; z-index: 40; left: 0; right: 0;
   display: flex; align-items: center; justify-content: space-between;
   padding: 26px 42px; pointer-events: none;
}
.hud.top { top: 0; }
.hud.bot { bottom: 0; }
.hud > * { pointer-events: auto; }

/* status box, echoing the P3R "current wallet" panel */
.brand {
   font-family: var(--disp); font-style: italic;
   border: 1.5px solid rgba(255,255,255,.85);
   background: rgba(4,24,56,.5); backdrop-filter: blur(2px);
   padding: 9px 18px 8px; box-shadow: 0 6px 20px rgba(2,18,50,.4);
}
.brand b { font-size: 22px; letter-spacing: 1px; color: var(--white); display:block; line-height:1; }
.brand span { font-family: var(--ui); font-style: normal; font-size: 10px; letter-spacing: 5px; color: var(--blue-bright); text-transform: uppercase; }

.clock {
   display: flex; align-items: center; gap: 14px;
   font-family: var(--disp); font-style: italic; color: var(--white);
   background: var(--panel2); border: 1px solid var(--line);
   padding: 8px 18px; transform: skewX(var(--skew));
   box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.clock > * { transform: skewX(calc(var(--skew) * -1)); display:inline-block; }
.clock .day  { font-size: 13px; letter-spacing: 3px; color: var(--blue); }
.clock .date { font-size: 22px; letter-spacing: 1px; }
.clock .time { font-size: 22px; color: var(--blue-bright); text-shadow: 0 0 12px var(--glow); }

.hud .tag {
   font-family: var(--disp); font-style: italic; font-size: 13px;
   letter-spacing: 8px; color: rgba(255,255,255,.7); text-transform: uppercase;
   text-shadow: 0 2px 10px rgba(2,18,50,.5);
}
/* bottom-right command bar — "Use a Skill / Ⓐ Confirm Ⓑ Close" */
.hint {
   font-family: var(--disp); font-style: italic; font-size: 13px; letter-spacing: 2px;
   color: #fff; text-transform: uppercase; display: flex; gap: 18px; align-items: center;
   text-shadow: 0 2px 10px rgba(2,18,50,.5);
}
.hint span { display: inline-flex; align-items: center; }
.hint kbd {
   font-family: var(--disp); font-style: italic; font-weight: 800;
   display: inline-grid; place-items: center; min-width: 22px; height: 22px;
   padding: 0 6px; border-radius: 999px; background: #fff; color: #0b2a5c;
   margin-right: 8px; font-size: 12px; box-shadow: 0 3px 10px rgba(2,18,50,.4);
}

/* social cluster bottom-left */
.hud .social { display: flex; gap: 16px; }
.hud .social a { color: var(--dim); font-size: 19px; transition: color .2s, transform .2s; }
.hud .social a:hover { color: var(--blue); transform: translateY(-3px); }

/* -----------------------------------------------------------------
   SCREENS
   ----------------------------------------------------------------- */
.screen {
   position: absolute; inset: 0; z-index: 10;
   opacity: 0; visibility: hidden;
   transition: opacity .35s ease, visibility .35s;
}
.screen.active { opacity: 1; visibility: visible; }

/* readability scrim behind content screens (menu stays fully open/bright) */
.screen:not(#screen-menu)::before {
   content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
   background:
      linear-gradient(180deg, rgba(2,16,44,.62), rgba(2,14,40,.82)),
      radial-gradient(120% 80% at 50% 0%, rgba(40,140,220,.18), transparent 60%);
}

/* ===== MENU SCREEN ===== */
/* Reference structure: character (silhouette) LEFT, cascading menu RIGHT */
/* NB: .screen is already position:absolute/inset:0 — that's the containing block
   for the absolutely-positioned .hero, so we must NOT override it here. */
#screen-menu { display: grid; grid-template-columns: minmax(320px, .9fr) 1.1fr;
   align-items: center; align-content: center; }
#screen-menu .blades { grid-column: 2; grid-row: 1; }

/* The signature P3R diagonal cascade: items step DOWN and to the RIGHT,
   bold italic, white-outlined with a cyan fill. */
.blades {
   z-index: 20;
   padding-left: clamp(40px, 6.2vw, 120px);
   display: flex; flex-direction: column; gap: clamp(0px, .4vw, 6px);
   align-self: center;
   transform: skewY(-5deg);
}
.blade {
   position: relative; display: flex; align-items: baseline; gap: 16px;
   padding: 2px 0; width: max-content;
   transform: translateX(-130%); opacity: 0;
   transition: transform .35s var(--ease-snap), filter .3s;
   animation: bladeIn .6s var(--ease) forwards;
}
/* each successive item is nudged further right -> diagonal fan */
.blade:nth-child(1){ margin-left: 0;    animation-delay:.06s; }
.blade:nth-child(2){ margin-left: 1.8vw; animation-delay:.13s; }
.blade:nth-child(3){ margin-left: 3.6vw; animation-delay:.20s; }
.blade:nth-child(4){ margin-left: 5.4vw; animation-delay:.27s; }
.blade:nth-child(5){ margin-left: 7.2vw; animation-delay:.34s; }
@keyframes bladeIn { to { transform: translateX(0); opacity: 1; } }

.blade .bnum {
   font-family: var(--disp); font-style: italic; font-size: 13px;
   color: rgba(255,255,255,.65); width: 20px; align-self: center;
   transition: color .25s;
}
.blade .blabel {
   font-family: var(--disp); font-style: italic; font-weight: 800;
   font-size: clamp(58px, 8.3vw, 116px); letter-spacing: .5px;
   text-transform: uppercase; line-height: .92;
   color: #7cc4ec;
   -webkit-text-stroke: 2.4px rgba(255,255,255,.92);
   paint-order: stroke fill;
   text-shadow: 0 8px 16px rgba(2,20,56,.45);
   transition: transform .25s var(--ease-snap), color .2s;
}
.blade .bsub {
   margin-left: 12px; align-self: center;
   font-family: var(--ui); font-size: 11px; letter-spacing: 3px;
   color: rgba(255,255,255,.85); text-transform: uppercase;
   opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s;
}

/* selected / hovered — scales up, red+black split fill, pink chevron banner */
.blade::before { /* the chevron banner behind the selected word */
   content: ""; position: absolute; z-index: -1;
   left: -22px; right: -38px; top: 50%; height: 84%;
   transform: translateY(-50%) scaleX(0); transform-origin: left;
   background: var(--pink);
   clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
   filter: drop-shadow(0 0 0 #fff) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
           drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
   transition: transform .3s var(--ease-snap);
}
.blade:hover, .blade.sel { transform: translateX(34px); }
.blade:hover::before, .blade.sel::before { transform: translateY(-50%) scaleX(1); }
.blade:hover .blabel, .blade.sel .blabel {
   transform: scale(1.16);
   color: transparent;
   background: linear-gradient(96deg, #0b1638 0 46%, var(--red) 54% 100%);
   -webkit-background-clip: text; background-clip: text;
   -webkit-text-stroke: 2.4px #ffffff;
   paint-order: stroke fill;
   text-shadow: 0 10px 22px rgba(0,10,40,.5);
}
.blade:hover .bnum, .blade.sel .bnum { color: #fff; }
.blade:hover .bsub, .blade.sel .bsub { opacity: 1; transform: none; color: #102046; }

/* hero / protagonist — a big duotone silhouette that bleeds off the edges and
   reveals its true colours as you browse the menu. */
/* full-screen layer so the figure can sit toward the centre, over the scene */
.hero { position: absolute; inset: 0; z-index: 5; overflow: visible; pointer-events: none; }

/* huge diagonal name graphic behind the figure (the P3R vertical title) */
.namestrip {
   position: absolute; left: 9%; top: 50%; z-index: 1;
   transform: translate(-50%, -50%) rotate(-78deg);
   font-family: var(--disp); font-style: italic; font-weight: 800;
   font-size: clamp(130px, 21vh, 250px); letter-spacing: 2px;
   color: #06142f; white-space: nowrap; line-height: .8;
   -webkit-text-stroke: 1px rgba(0,0,0,.3);
   pointer-events: none; user-select: none;
   animation: nameIn 1s var(--ease) .15s both;
}
.namestrip .ns-narrow { display: none; }   /* mobile-only label */
@keyframes nameIn { from { opacity: 0; transform: translate(-60%,-50%) rotate(-78deg); } to { opacity: 1; } }

/* the character — left-of-centre, large, gazing toward the menu, bleeding off bottom */
.hero-fig {
   position: absolute; z-index: 2; left: 26%; bottom: -9%;
   width: clamp(560px, 88vh, 1120px); transform: translateX(-50%);
   animation: figIn 1s var(--ease) .2s both;
   filter: drop-shadow(0 0 30px rgba(80,150,210,.32)) drop-shadow(0 26px 44px rgba(0,12,38,.6));
}
@keyframes figIn { from { opacity: 0; } to { opacity: 1; } }

.hero-fig .real {
   display: block; width: 100%; height: auto;
   /* true colours — no blue duotone tint */
   filter: none;
   transition: filter .6s var(--ease);
   animation: bob 7s ease-in-out infinite;
}
.hero.lit .hero-fig .real { filter: none; }   /* true colours while browsing */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* underwater light shimmering across the figure (masked to its shape) */
.hero-fig .caustic-sweep {
   position: absolute; inset: 0; z-index: 3; pointer-events: none;
   -webkit-mask: url(../me.png) top left / 100% auto no-repeat;
           mask: url(../me.png) top left / 100% auto no-repeat;
   background: linear-gradient(115deg, transparent 40%, rgba(170,220,245,.3) 50%, transparent 60%);
   background-size: 280% 100%; mix-blend-mode: screen;
   animation: sweep 6.5s ease-in-out infinite;
}
@keyframes sweep { 0% { background-position: 130% 0; } 55%,100% { background-position: -60% 0; } }

.hero-name {
   position: absolute; left: 31%; bottom: 5%; z-index: 4; text-align: center;
   transform: translateX(-50%) skewX(var(--skew));
   font-family: var(--disp); font-style: italic; text-transform: uppercase;
   text-shadow: 0 8px 30px rgba(0,10,30,.6);
}
.hero-name .l1 { display:block; font-size: clamp(13px,1.4vw,18px); color: var(--blue-bright); letter-spacing: 4px; }
.hero-name .l2 { display:block; font-size: clamp(28px,3.6vw,52px); color: var(--white); }

/* ===== CONTENT SCREENS ===== */
.content {
   position: absolute; inset: 0; z-index: 12;
   padding: 96px clamp(42px,7vw,120px) 90px;
   overflow-y: auto; overflow-x: hidden;
   -webkit-overflow-scrolling: touch;
}
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue-deep), var(--blue)); }
.content::-webkit-scrollbar-track { background: transparent; }

.back-blade {
   position: absolute; top: 84px; left: clamp(20px,4vw,60px); z-index: 30;
   display: inline-flex; align-items: center; gap: 12px;
   padding: 10px 24px 10px 18px; transform: skewX(var(--skew));
   background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
   font-family: var(--disp); font-style: italic; letter-spacing: 2px; text-transform: uppercase;
   transition: transform .25s var(--ease), background .25s, color .25s;
}
.back-blade > * { transform: skewX(calc(var(--skew) * -1)); display:inline-block; }
.back-blade:hover { transform: skewX(var(--skew)) translateX(-8px); background: var(--blue); color:#021019; }

.screen-head { margin: 0 0 38px; position: relative; }
.screen-head .kick {
   font-family: var(--disp); font-style: italic; font-size: 14px; letter-spacing: 6px;
   color: var(--blue); text-transform: uppercase;
}
.screen-head h1 {
   font-style: italic; text-transform: uppercase;
   font-size: clamp(46px, 8vw, 104px); letter-spacing: -1px;
   text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.screen-head h1 em { color: var(--blue); font-style: italic; }

.col-in { max-width: 1180px; margin: 0 auto; }

/* card / panel base */
.tcard {
   background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--blue);
   padding: 26px 30px; clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
}
.tcard h3 { font-style: italic; font-size: 17px; letter-spacing: 3px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }

/* ---- ABOUT (status screen) ---- */
.about-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 44px; align-items: start; }
.about-portrait { transform: skewX(var(--skew)); clip-path: polygon(7% 0,100% 0,93% 100%,0 100%); overflow:hidden; border:1px solid var(--line); box-shadow:0 20px 50px rgba(0,0,0,.5); }
.about-portrait img { transform: skewX(calc(var(--skew)*-1)) scale(1.2); filter: contrast(1.05); }
.about-lead { font-family: var(--ui); font-size: 20px; line-height: 1.7; color: var(--ink); }
.about-lead + p { color: var(--dim); line-height:1.7; margin-top:14px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 8px 0; border-bottom: 1px dashed rgba(143,176,204,.16); font-size: 14px; display:flex; gap:10px; }
.info-list li:last-child { border:none; }
.info-list strong { color: var(--white); font-family: var(--disp); font-style: italic; flex: 0 0 78px; }
.info-list span { color: var(--dim); flex: 1; min-width: 0; word-break: break-word; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 28px; }

/* skill gauges — very Persona "stats" */
.gauges { margin-top: 26px; }
.gauge { margin-bottom: 14px; }
.gauge .g-top { display:flex; justify-content: space-between; font-family: var(--disp); font-style: italic; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin-bottom: 5px; }
.gauge .g-top span:last-child { color: var(--blue); }
.gauge .g-bar { height: 9px; background: rgba(41,196,255,.12); transform: skewX(var(--skew)); overflow: hidden; border:1px solid rgba(41,196,255,.2); }
.gauge .g-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); box-shadow: 0 0 14px var(--glow); transition: width 1s var(--ease); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.btn {
   display: inline-flex; align-items: center; gap: 10px;
   padding: 13px 28px; font-family: var(--disp); font-style: italic; font-size: 15px;
   letter-spacing: 2px; text-transform: uppercase; color: #021019;
   background: linear-gradient(120deg, var(--blue-bright), var(--blue));
   transform: skewX(var(--skew)); clip-path: polygon(6% 0,100% 0,94% 100%,0 100%);
   transition: transform .22s var(--ease), box-shadow .22s, filter .22s;
}
.btn > * { transform: skewX(calc(var(--skew)*-1)); display:inline-flex; align-items:center; gap:10px; }
.btn:hover { transform: skewX(var(--skew)) translateY(-3px); box-shadow: 0 12px 30px var(--glow); filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1.5px solid var(--blue); color: var(--white); }
.btn.ghost:hover { background: rgba(41,196,255,.12); }

/* ---- RESUME (history) ---- */
.tl-tabs { display:flex; gap: 14px; margin-bottom: 30px; }
.tl-group h2 { font-style: italic; text-transform: uppercase; font-size: 24px; letter-spacing: 2px; margin: 0 0 24px; display:flex; align-items:center; gap:14px; color: var(--white); }
.tl-group h2::before { content:""; width: 30px; height: 4px; background: var(--blue); transform: skewX(var(--skew)); }
.tl-group + .tl-group { margin-top: 48px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content:""; position:absolute; left:8px; top:6px; bottom:6px; width:2px; background: linear-gradient(var(--blue), transparent); }
.tl-item { position: relative; padding: 0 0 34px 16px; }
.tl-item::before { content:""; position:absolute; left:-34px; top:5px; width:18px; height:18px; background: var(--bg-0); border:3px solid var(--blue); transform: rotate(45deg); box-shadow:0 0 14px var(--glow); }
.tl-when { font-family: var(--disp); font-style: italic; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.tl-item h4 { font-style: italic; font-size: 22px; margin: 5px 0 2px; text-transform: uppercase; }
.tl-org { font-family: var(--ui); color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.tl-item p { color: var(--dim); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ---- WORKS grid ---- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 26px; }
.wcard {
   position: relative; display:block; overflow: hidden; transform: skewX(-4deg);
   border: 1px solid var(--line); background: var(--bg-2);
   transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.wcard:hover { transform: skewX(-4deg) translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 0 1px var(--blue); border-color: var(--blue); }
.wcard .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.wcard .thumb img { width:100%; height:100%; object-fit: cover; transform: skewX(4deg) scale(1.14); filter: saturate(.85) brightness(.82); transition: transform .5s var(--ease), filter .5s; }
.wcard:hover .thumb img { transform: skewX(4deg) scale(1.22); filter: saturate(1.1) brightness(1); }
.wcard .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 38%, rgba(2,6,15,.94)); }
.wcard .meta { position: relative; padding: 20px 24px 24px; transform: skewX(4deg); }
.wcard .type { font-family: var(--disp); font-style: italic; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.wcard h3 { font-style: italic; font-size: 24px; text-transform: uppercase; margin: 5px 0 0; }
.wcard .go { margin-top: 12px; display:inline-flex; align-items:center; gap:8px; font-family: var(--disp); font-style: italic; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.wcard:hover .go { color: var(--blue); }
.wcard .corner { position:absolute; top:0; right:0; width:0; height:0; border-style: solid; border-width: 0 42px 42px 0; border-color: transparent var(--blue) transparent transparent; z-index:3; transform: skewX(4deg); }

/* ---- CONTACT ---- */
.contact-screen .col-in { text-align: center; }
.contact-card { max-width: 560px; margin: 26px auto 0; background: var(--panel); border:1px solid var(--line); padding: 46px 40px; clip-path: polygon(0 0,96% 0,100% 12%,100% 100%,4% 100%,0 88%); }
.contact-card .ic { font-size: 38px; color: var(--blue); margin-bottom: 12px; }
.contact-card .lbl { font-family: var(--disp); font-style: italic; letter-spacing: 4px; text-transform: uppercase; font-size: 12px; color: var(--dim); }
.contact-card a.mail { display:block; margin-top: 8px; font-family: var(--disp); font-style: italic; font-size: clamp(22px,3.4vw,34px); color: var(--white); word-break: break-all; }
.contact-card a.mail:hover { color: var(--blue); }
.contact-social { display:flex; gap: 18px; justify-content:center; margin-top: 28px; }
.contact-social a { width: 52px; height: 52px; display:grid; place-items:center; border:1px solid var(--line); color: var(--blue); font-size: 20px; transform: skewX(var(--skew)); transition: background .2s, color .2s, transform .2s; }
.contact-social a i { transform: skewX(calc(var(--skew)*-1)); }
.contact-social a:hover { background: var(--blue); color:#021019; transform: skewX(var(--skew)) translateY(-4px); }

/* readable article (used by detail pages too) */
.article { max-width: 820px; font-family: var(--ui); font-size: 17px; line-height: 1.8; }
.article > p:first-of-type { font-size: 20px; color: var(--ink); }
.article h2 { font-style: italic; text-transform: uppercase; font-size: 28px; margin: 46px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display:flex; align-items:center; gap:14px; }
.article h2::before { content:""; flex:none; width: 12px; height: 22px; background: var(--blue); transform: skewX(var(--skew)); box-shadow:0 0 14px var(--glow); }
.article h3 { font-style: italic; color: var(--blue-bright); font-size: 20px; margin: 26px 0 8px; }
.article p { color: var(--dim); margin: 0 0 16px; }
.article strong, .article b { color: var(--white); font-family: var(--disp); font-style: italic; font-weight: 800; }
.article ul { list-style: none; margin: 0 0 20px; padding: 0; }
.article ul li { position: relative; padding: 4px 0 4px 28px; color: var(--dim); margin-bottom: 4px; }
.article ul li::before { content:""; position:absolute; left:4px; top:13px; width:9px; height:9px; background: var(--blue); transform: rotate(45deg); }
.article blockquote { margin: 24px 0; padding: 16px 24px; border-left: 3px solid var(--blue); background: var(--panel); font-style: italic; color: var(--ink); }

/* -----------------------------------------------------------------
   DIAGONAL WIPE TRANSITION
   ----------------------------------------------------------------- */
.wipe {
   position: fixed; inset: -20% -30%; z-index: 80; pointer-events: none;
   background: linear-gradient(110deg, var(--blue-deep), var(--blue) 55%, var(--blue-bright));
   transform: skewX(-14deg) translateX(-160%);
}
.wipe.run { animation: wipeGo .62s var(--ease-snap) forwards; }
@keyframes wipeGo {
   0%   { transform: skewX(-14deg) translateX(-160%); }
   45%  { transform: skewX(-14deg) translateX(0); }
   55%  { transform: skewX(-14deg) translateX(0); }
   100% { transform: skewX(-14deg) translateX(160%); }
}
.wipe .wmark {
   position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) skewX(14deg);
   font-family: var(--disp); font-style: italic; font-size: 22vw; color: rgba(2,16,25,.18);
   letter-spacing: -10px;
}

/* content fade-in when a screen becomes active */
.screen.active .content > * { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity:1; transform:none; } }

/* -----------------------------------------------------------------
   DOCUMENT PAGES (work detail) — scrolling, reuse the same language
   ----------------------------------------------------------------- */
body.doc { overflow-x: hidden; overflow-y: auto; height: auto; min-height: 100%; }
.doc .bg, .doc .moon { position: fixed; }
.doc::after {
   content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
   opacity: .05; mix-blend-mode: overlay;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.doc-hud { position: fixed; top: 0; left: 0; right: 0; z-index: 40;
   display: flex; align-items: center; justify-content: space-between;
   padding: 20px 42px; pointer-events: none; }
.doc-hud > * { pointer-events: auto; }
.doc-hud .back-blade { position: static; top: auto; left: auto; }

.wrap { width: 90%; max-width: 1120px; margin: 0 auto; }

.doc-main { position: relative; z-index: 10; }
.detail-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end;
   padding: 150px 0 48px; overflow: hidden; }
.detail-hero .dh-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
   filter: brightness(.48) saturate(.9); transform: scale(1.05); }
.detail-hero::after { content: ""; position: absolute; inset: 0;
   background: linear-gradient(180deg, rgba(2,6,15,.5), rgba(2,6,15,.7) 55%, var(--bg-0)),
               linear-gradient(90deg, rgba(2,6,15,.82), transparent 60%); }
.detail-hero .wrap { position: relative; z-index: 2; }
.dh-type { font-family: var(--disp); font-style: italic; letter-spacing: 4px; text-transform: uppercase;
   color: var(--blue); font-size: 14px; }
.detail-hero h1 { font-style: italic; text-transform: uppercase; font-size: clamp(44px, 8vw, 92px);
   letter-spacing: -1px; margin-top: 10px; text-shadow: 0 8px 40px rgba(0,0,0,.6); }

.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 52px;
   padding: 64px 0 110px; align-items: start; position: relative; z-index: 10; }
.detail-body .article { max-width: none; }
.fact { position: sticky; top: 96px; }
.fact dl { margin: 0; }
.fact dt { font-family: var(--disp); font-style: italic; font-size: 11px; letter-spacing: 2px;
   text-transform: uppercase; color: var(--dim); margin-top: 15px; }
.fact dt:first-child { margin-top: 0; }
.fact dd { margin: 3px 0 0; color: var(--white); font-size: 15px; }
.fact .links { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.detail-foot { position: relative; z-index: 10; border-top: 1px solid var(--line);
   padding: 34px 0 80px; }
.detail-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
   .detail-body { grid-template-columns: 1fr; }
   .fact { position: static; }
   .doc-hud { padding: 16px 20px; }
}

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */

/* tablet — collapse the multi-column content layouts */
@media (max-width: 980px) {
   .about-wrap  { grid-template-columns: 1fr; }
   .about-cols  { grid-template-columns: 1fr; }
   .detail-body { grid-template-columns: 1fr; }
}

/* phone menu — stack: character up top, menu list below */
@media (max-width: 820px) {
   #screen-menu { display: block; }

   .hero { z-index: 2; }
   .namestrip {
      left: 50%; top: 28%; opacity: .22;
      transform: translate(-50%,-50%) rotate(0deg);
      font-size: clamp(40px, 14vw, 78px); letter-spacing: 0;
   }
   .namestrip .ns-wide   { display: none; }
   .namestrip .ns-narrow { display: inline; }
   .hero-fig {
      left: 50%; right: auto; bottom: auto; top: 14%;
      width: min(76vw, 52vh); transform: translateX(-50%);
   }

   .blades {
      position: absolute; left: 0; right: 0; bottom: 16vh; z-index: 20;
      padding: 0 26px; gap: 4px; transform: none; align-self: auto;
   }
   .blade { margin-left: 0 !important; }
   .blade .blabel { font-size: clamp(30px, 8.4vw, 46px); }
   .blade::before { left: -14px; right: -26px; }
   .blade:hover, .blade.sel { transform: translateX(20px); }
}

/* small phones — trim the HUD chrome and tighten content padding */
@media (max-width: 640px) {
   .hud { padding: 14px 16px; }
   .hud .tag, .hint { display: none; }
   .brand { padding: 7px 13px 6px; }
   .brand b { font-size: 18px; }
   .clock { padding: 6px 12px; gap: 8px; }
   .clock .date, .clock .time { font-size: 17px; }

   .content { padding: 80px 20px 60px; }
   .back-blade { top: 68px; }
   .screen-head h1 { font-size: clamp(40px, 13vw, 62px); }
   .contact-card { padding: 34px 22px; }
   .contact-card a.mail { font-size: clamp(18px, 6.5vw, 26px); }
}
