/* ============================================================
   Albin Sigi | portfolio v2 (black & white)
   Clash Display + Satoshi + Instrument Serif
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-soft: #f5f5f4;
  --ink: #0b0b0b;
  --gray: #6b6b6b;
  --line: #e4e4e4;
  --line-dark: #262626;

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;

  --max-w: 1160px;
  --pad-x: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }

/* keyboard focus: visible everywhere, adapts to light and dark blocks */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 2000;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700; font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 0; }

/* ---- grain overlay ---- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- custom cursor: inverts whatever is under it ---- */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hovering { width: 52px; height: 52px; }

/* when assets/photo-child.png exists, the cursor becomes the childhood photo */
.cursor-dot--photo {
  width: 44px; height: 44px;
  background-size: cover;
  /* the childhood photo is very tall; this keeps the face in the circle */
  background-position: 50% 33%;
  mix-blend-mode: normal;
  border: 1.5px solid var(--ink);
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.35);
}
.cursor-dot--photo.is-hovering { width: 64px; height: 64px; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* ---- reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.nav__mark { display: inline-block; }
.nav__logo {
  height: 28px; width: auto; display: block;
  /* uploaded logo is white on transparent, flip it to black for the light nav */
  filter: invert(1);
}

.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-weight: 500; font-size: 0.95rem; }
.nav__links a:not(.nav__cta) { position: relative; padding: 4px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  background: var(--ink); color: var(--paper);
  padding: 10px 20px; border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
@media (prefers-reduced-motion: reduce) { .hero__canvas { display: none; } }

.hero__content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(20px, 3vh, 40px) var(--pad-x) clamp(20px, 3vh, 40px);
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__content a, .hero__content button, .hero__content .flip-photo { pointer-events: auto; }

/* ---- then/now flip photo ---- */
.hero__photo { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.flip-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-soft);
  cursor: pointer;
}
.flip-photo__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease-out);
}
.flip-photo__img--then { opacity: 0; object-position: 50% 32%; }
.flip-photo:hover .flip-photo__img--then,
.flip-photo.is-flipped .flip-photo__img--then { opacity: 1; }

.flip-photo__caption {
  position: absolute; left: 50%; bottom: 12px;
  transform: translateX(-50%);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.3s;
}
.flip-photo__caption--then { opacity: 0; }
.flip-photo:hover .flip-photo__caption--now,
.flip-photo.is-flipped .flip-photo__caption--now { opacity: 0; }
.flip-photo:hover .flip-photo__caption--then,
.flip-photo.is-flipped .flip-photo__caption--then { opacity: 1; }

.flip-photo__fallback {
  position: absolute; inset: 0;
  display: none;
  place-items: center;
  font-size: 3.5rem;
}

/* missing "now" photo: show the placeholder mark */
.flip-photo--missing .flip-photo__img,
.flip-photo--missing .flip-photo__caption { display: none; }
.flip-photo--missing .flip-photo__fallback { display: grid; }
.flip-photo--missing { cursor: default; }

/* missing childhood photo: keep the now photo, disable the flip */
.flip-photo--nochild .flip-photo__img--then,
.flip-photo--nochild .flip-photo__caption--then { display: none; }
.flip-photo--nochild:hover .flip-photo__caption--now { opacity: 1; }
.flip-photo--nochild { cursor: default; }


.hero__eyebrow {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.hero__title > span { display: block; }
.hero__title em { font-size: 1.06em; line-height: 1; }

.hero__row {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; align-items: flex-end;
  margin-top: clamp(20px, 3.5vh, 40px);
}
.hero__intro { max-width: 52ch; font-size: 1.08rem; color: var(--gray); }

.hero__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.92rem;
  background: var(--paper); border: 1px solid var(--ink);
  padding: 10px 18px; border-radius: 999px;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }

.hero__social { display: flex; gap: 18px; font-weight: 500; font-size: 0.95rem; }
.hero__social a { border-bottom: 1.5px solid var(--line); padding-bottom: 2px; transition: border-color 0.25s; }
.hero__social a:hover { border-color: var(--ink); }


/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
  background: var(--paper);
}
.marquee__track {
  display: flex; gap: 28px; align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.05rem;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   WORK (editorial index rows)
   ============================================================ */
.work {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 130px) var(--pad-x) clamp(40px, 6vh, 80px);
}

.section-head { margin-bottom: clamp(40px, 7vh, 64px); max-width: 60ch; }
.section-head h2, .about h2, .contact__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.section-head p { color: var(--gray); font-size: 1.08rem; }

.work-list { border-top: 1px solid var(--ink); }

.work-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(24px, 4vh, 40px) clamp(8px, 2vw, 24px);
  border-bottom: 1px solid var(--ink);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.work-row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: clamp(16px, 3vw, 40px);
}

.work-row__index {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1.15rem;
  color: var(--gray);
  transition: color 0.3s;
}
.work-row:hover .work-row__index { color: var(--paper); }

.work-row__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work-row__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.work-row__desc {
  color: var(--gray);
  max-width: 62ch;
  transition: color 0.3s;
}
.work-row:hover .work-row__desc { color: #c9c9c9; }
.work-row__tags {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray);
  transition: color 0.3s;
}
.work-row:hover .work-row__tags { color: #a3a3a3; }

.work-row__arrow {
  font-size: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.3s var(--ease-out);
}
.work-row:hover .work-row__arrow { transform: translateX(8px); }

/* ============================================================
   AI EXPLORATIONS (terminal block)
   ============================================================ */
.ai {
  background: var(--ink);
  padding: clamp(72px, 12vh, 130px) var(--pad-x);
}
.ai ::selection { background: var(--paper); color: var(--ink); }
.ai__inner { max-width: var(--max-w); margin: 0 auto; }

.term {
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  background: #101010;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid #2e2e2e;
}
.term__dot { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3a; }
.term__dot:nth-child(2) { background: #555; }
.term__dot:nth-child(3) { background: #777; }
.term__bar-title {
  margin-left: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem; color: #8f8f8f;
}

.term__body {
  padding: clamp(22px, 4vw, 40px);
  font-family: "JetBrains Mono", monospace;
}
.term__prompt { color: #a3a3a3; font-size: 0.95rem; }
.term__prompt strong { color: var(--paper); font-weight: 700; }
#term-typed { color: var(--paper); }

.term__cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--paper);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .term__cursor { animation: none; } }

.term__result { color: #8f8f8f; font-size: 0.88rem; margin: 10px 0 30px; }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ai-card {
  display: block;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.ai-card:hover {
  border-color: var(--paper);
  transform: translateY(-3px);
  background: #161616;
}

.ai-card__name {
  color: var(--paper);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.ai-card__status { font-weight: 400; font-size: 0.75rem; color: #8f8f8f; }
.ai-card__status--live { color: var(--paper); }

.ai-card__desc {
  color: #a3a3a3;
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 10px 0 14px;
}
.ai-card__tools { color: #8a8a8a; font-size: 0.75rem; }
.ai-card__link {
  color: var(--paper);
  font-size: 0.85rem;
  margin-top: 12px;
  transition: transform 0.3s var(--ease-out);
}
a.ai-card:hover .ai-card__link { transform: translateX(6px); }

.term__footnote { color: #8a8a8a; font-size: 0.85rem; margin-top: 30px; }

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

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 130px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.portrait-card {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,0.03) 10px 11px),
    var(--paper-soft);
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--ink);
  position: sticky; top: 96px;
  overflow: hidden;
}
.portrait-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.about h2 { max-width: 18ch; }
.about__text > p { color: var(--gray); font-size: 1.1rem; max-width: 58ch; margin-bottom: 28px; }

.about__points { display: grid; gap: 14px; margin-bottom: 28px; }
.about__points li {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--gray);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.about__points li:hover { border-color: var(--ink); transform: translateX(6px); }
.about__points strong { color: var(--ink); display: block; font-size: 1.02rem; }

.about__personal {
  font-family: var(--font-accent); font-style: italic;
  font-size: 1.15rem !important; color: var(--ink) !important;
}

/* ============================================================
   CONTACT (inverted block)
   ============================================================ */
.contact {
  text-align: center;
  padding: clamp(80px, 14vh, 150px) var(--pad-x) 0;
  background: var(--ink);
  color: var(--paper);
}
.contact ::selection { background: var(--paper); color: var(--ink); }
.contact__eyebrow {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #a3a3a3; margin-bottom: 20px;
}
.contact__title { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 40px; }

.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: clamp(80px, 12vh, 140px); }
.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 500;
  background: var(--paper); color: var(--ink);
  border: none; cursor: pointer;
  padding: 20px 36px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 16px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.contact__email:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -8px rgba(255, 255, 255, 0.25); }
.contact__copy-hint {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.55;
}
.contact__alt { font-weight: 500; color: #a3a3a3; border-bottom: 1.5px solid var(--line-dark); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.contact__alt:hover { color: var(--paper); border-color: var(--paper); }
.contact__phone {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.contact__phone:hover { color: #a3a3a3; }

/* ============================================================
   FOOTER (inside inverted contact block)
   ============================================================ */
.footer {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem; color: #a3a3a3;
  text-align: left;
}
.footer a { font-weight: 700; color: var(--paper); }
.footer__dot { margin: 0 8px; }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.case {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--pad-x) clamp(64px, 10vh, 120px);
}

.case__back {
  display: inline-block;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s;
}
.case__back:hover { border-color: var(--ink); }

.case__category {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 18px;
}

.case__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 32px;
}

.case__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(36px, 6vh, 56px);
}
.case__meta dt {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray); margin-bottom: 2px;
}
.case__meta dd { font-weight: 500; }

.case__summary {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(40px, 7vh, 64px);
}
.case__summary h2 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.case__summary ul { display: grid; gap: 8px; }
.case__summary li { padding-left: 20px; position: relative; color: var(--gray); }
.case__summary li::before { content: "✳"; position: absolute; left: 0; font-size: 0.75em; top: 0.35em; color: var(--ink); }
.case__summary strong { color: var(--ink); }

.case h2:not(.case__summary h2) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: clamp(44px, 7vh, 72px) 0 18px;
}
.case h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 32px 0 10px;
}
.case p { color: var(--gray); margin-bottom: 16px; max-width: 68ch; }
.case p strong { color: var(--ink); }
.case ul:not(.case__summary ul) { display: grid; gap: 10px; margin: 0 0 20px; }
.case ul:not(.case__summary ul) li {
  padding-left: 20px; position: relative; color: var(--gray);
}
.case ul:not(.case__summary ul) li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1.5px; background: var(--ink);
}
.case li strong { color: var(--ink); }

.case blockquote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  font-family: var(--font-accent); font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
}

.img-slot {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  color: var(--gray);
  font-size: 0.88rem; font-weight: 500;
  padding: 40px 24px;
  text-align: center;
  margin: 24px 0;
}

.case__nda {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: clamp(36px, 6vh, 56px);
}
.case__nda strong { color: var(--ink); }

.case__next {
  display: block;
  margin-top: clamp(56px, 9vh, 96px);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--ink);
  border-radius: 18px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.case__next:hover { background: var(--ink); color: var(--paper); }
.case__next-label {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gray); display: block; margin-bottom: 8px;
}
.case__next:hover .case__next-label { color: #a3a3a3; }
.case__next-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__photo { max-width: 280px; align-items: flex-start; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 300px; }
  .portrait-card { position: static; }
  .work-row { grid-template-columns: auto 1fr; }
  .work-row__arrow { display: none; }
}

@media (max-width: 560px) {
  .nav { padding: 14px 16px; }
  .nav__brand-text { display: none; }
  .nav__links { gap: 14px; font-size: 0.88rem; }
  .nav__cta { padding: 8px 14px; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; align-items: flex-start; }
  .contact__email {
    flex-direction: column;
    gap: 4px;
    padding: 16px 28px;
    max-width: 100%;
  }
  .contact__copy-hint { white-space: nowrap; }
}
