/* Layout concept: the page is a pattern sheet (Schnittbogen). A real-scale measuring
   tape runs down the left edge, pattern lines sit behind the name, photos are the cut pieces. */
:root {
  --paper: #e6e7ea;      /* cool pattern-board grey */
  --paper-2: #d9dadf;
  --ink: #111114;
  --ink-soft: #55565e;
  --pink: #ff9be4;       /* her portfolio pink */
  --red: #d3122b;        /* sold stamp only */
  --white: #f7f7f8;

  --f-display: "Jacquard 24", "UnifrakturCook", "Old English Text MT", serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, monospace;

  --tape: 30px;
  --gut: clamp(16px, 4vw, 56px);
  --cm: 37.795px;        /* 1 cm at 96 dpi */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  padding-left: calc(var(--tape) + var(--gut));
  padding-right: var(--gut);
  max-width: 1500px;
  margin-inline: auto;
}

.label {
  font: 400 12px/1.4 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label span { opacity: .45; margin-inline: .35em; }
.label .sz, .sz { text-transform: none; opacity: 1; margin: 0; }

.display {
  font: 400 clamp(3.2rem, 9.5vw, 9rem)/.86 var(--f-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display em, .contact__big em {
  font-style: normal;
  background: var(--pink);
  padding: 0 .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.35; font-weight: 500; text-wrap: pretty; }

/* ───── measuring tape ───── */
.tape {
  position: absolute; top: 0; left: 0; bottom: 0; width: var(--tape); z-index: 5;
  background:
    repeating-linear-gradient(to bottom, var(--ink) 0 1.5px, transparent 1.5px calc(var(--cm) * 5)) left / 100% 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px var(--cm)) right / 45% 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px calc(var(--cm) / 2)) right / 22% 100% no-repeat,
    var(--pink);
  border-right: 1.5px solid var(--ink);
  overflow: hidden;
}
body { position: relative; }
.tape__nums span {
  position: absolute; left: 3px;
  font: 500 10px/1 var(--f-mono);
  transform: translateY(4px);
}
.readout {
  position: fixed; left: calc(var(--tape) + 10px); bottom: 12px; z-index: 30;
  font: 500 12px/1 var(--f-mono); letter-spacing: .06em;
  background: var(--ink); color: var(--pink);
  padding: 7px 9px;
  font-variant-numeric: tabular-nums;
}

/* ───── nav ───── */
.nav {
  position: fixed; top: 0; right: 0; left: var(--tape); z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px var(--gut);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__mark {
  font: 400 34px/1 var(--f-display); text-decoration: none;
  background: var(--ink); color: var(--pink); padding: 2px 9px 5px;
}
.nav nav { display: flex; gap: 2px; background: var(--ink); padding: 3px; }
.nav nav a {
  font: 400 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--white); padding: 9px 11px;
  transition: background .2s, color .2s;
}
.nav nav a:hover, .nav nav a.is-on { background: var(--pink); color: var(--ink); }
.nav nav .nav__lang { color: var(--pink); border-left: 1px solid #55565e; margin-left: 2px; }

/* ───── hero ───── */
.hero { position: relative; padding-top: clamp(84px, 11vw, 150px); overflow: hidden; }
.hero__pattern {
  position: absolute; left: var(--tape); right: 0; top: 0; width: calc(100% - var(--tape)); height: clamp(420px, 52vw, 760px);
  pointer-events: none;
}
.hero__pattern path { vector-effect: non-scaling-stroke; stroke-width: 1.4; }
.p-ink { stroke: var(--ink); opacity: .55; }
.p-pink { stroke: #f04fc6; stroke-width: 2 !important; }
.p-dash { stroke: var(--ink); opacity: .5; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .draw { animation: draw 2.4s cubic-bezier(.6,.05,.2,1) both; }
.js .draw:nth-child(3), .js .draw:nth-child(4) { animation-delay: .25s; }
.js .draw:nth-child(5), .js .draw:nth-child(6) { animation-delay: .5s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero__labels text { font: 400 9px var(--f-mono); letter-spacing: .14em; fill: var(--ink); opacity: .6; }

.hero__inner { position: relative; min-height: clamp(250px, 34vw, 470px); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(12px, 2vw, 22px); }
.hero__title { font-size: clamp(2.6rem, 9.5vw, 9rem); white-space: nowrap; }
.hero__sub { font-size: clamp(11px, 1.1vw, 14px); }

.hero__figure { position: relative; margin-top: clamp(28px, 4vw, 56px); }
.hero__figure figcaption { margin-top: 10px; }

/* frames (cut pieces) */
.frame { position: relative; overflow: hidden; background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame img[data-parallax] { transform: scale(1.12); will-change: transform; }
.frame--hero { aspect-ratio: 16 / 9; }
.frame--hero img { object-position: 50% 35%; }
.js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.65,0,.2,1); }
.js .reveal.is-in { clip-path: inset(0); }

/* ───── statement ───── */
.statement { padding-block: clamp(90px, 16vw, 230px); }
.statement__text {
  font: 500 clamp(1.7rem, 4.6vw, 4.4rem)/1.08 var(--f-body);
  letter-spacing: -.025em; max-width: 21ch; text-wrap: balance;
  margin-left: auto; margin-right: 4vw;
}
.statement__text .w { opacity: .16; transition: opacity .25s; }
.statement__text .w.on { opacity: 1; }

/* ───── marquee ───── */
.marquee { background: var(--pink); border-block: 1.5px solid var(--ink); overflow: hidden; margin-left: var(--tape); transform: rotate(-1.2deg) scale(1.02); }
.marquee__track { display: flex; white-space: nowrap; will-change: transform; font: 400 clamp(1.6rem, 3.4vw, 2.8rem)/1.5 var(--f-display); }
.marquee__track span { padding-right: .5em; }

/* ───── projects ───── */
.work { padding-top: clamp(80px, 12vw, 170px); display: grid; gap: clamp(110px, 17vw, 250px); }
.project__head { display: grid; gap: 14px; margin-bottom: clamp(30px, 5vw, 70px); }
.project__text { display: grid; gap: 16px; align-content: start; max-width: 46ch; min-width: 0; }
.project__text p:not(.lead):not(.label):not(.place) { color: var(--ink-soft); }

.spec { display: grid; margin-top: 10px; border-top: 1.5px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--ink); }
.spec dt { font: 400 12px/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.spec dd { font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 32px); align-items: start; }

.grid--symp .g-a { grid-column: 1 / 7; aspect-ratio: 2 / 3; }
.grid--symp .g-b { grid-column: 8 / 13; align-self: end; }
.grid--symp .g-c { grid-column: 1 / 5; aspect-ratio: 3 / 4; }
.grid--symp .g-d { grid-column: 5 / 9; aspect-ratio: 3 / 4; margin-top: clamp(30px, 6vw, 90px); }
.grid--symp .g-e { grid-column: 9 / 13; aspect-ratio: 3 / 4; }

.sheets { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.2vw, 32px); margin-top: clamp(30px, 5vw, 70px); padding: clamp(18px, 3vw, 40px); border: 1.5px dashed var(--ink); }
.sheet { flex: 1 1 200px; display: grid; gap: 8px; min-width: 0; }
.sheet img { width: 100%; background: #fff; border: 1px solid var(--ink); }
.sheet:nth-child(2) { transform: rotate(.8deg); }
.sheet:nth-child(3) { transform: rotate(-.6deg); }

.grid--dirndl .g-a { grid-column: 1 / 6; align-self: center; }
.grid--dirndl .g-b { grid-column: 7 / 13; aspect-ratio: 4 / 5; }

.grid--ffl .g-a { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.grid--ffl .g-b { grid-column: 7 / 13; }
.grid--ffl .g-c { grid-column: 4 / 13; margin-top: clamp(-120px, -8vw, -20px); }
.place { display: flex; align-items: flex-end; gap: 10px; }
.place__n { font: 400 clamp(8rem, 17vw, 15rem)/.7 var(--f-display); background: var(--pink); padding: .08em .1em .02em; }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 20px); }
.strip .frame { aspect-ratio: 2 / 3; }
.strip .frame:nth-child(2) { margin-top: clamp(14px, 3vw, 44px); }
.strip--tight { gap: 0; }
.strip--tight .frame:nth-child(2) { margin-top: 0; }

.grid--soft .g-a { grid-column: 1 / 9; }
.grid--soft .g-b { grid-column: 9 / 13; align-self: end; }
.grid--soft .g-c { grid-column: 1 / 5; align-self: end; }
.grid--soft .g-d { grid-column: 5 / 9; aspect-ratio: 4 / 5; }
.grid--soft .g-e { grid-column: 9 / 13; aspect-ratio: 4 / 5; margin-top: clamp(30px, 6vw, 90px); }

.grid--tailor .g-a { grid-column: 2 / 6; aspect-ratio: 3 / 4; }
.grid--tailor .g-b { grid-column: 6 / 9; aspect-ratio: 3 / 4; margin-top: clamp(30px, 7vw, 110px); }
.grid--tailor .g-c { grid-column: 9 / 13; align-self: end; }

/* ───── knit rail ───── */
.rail { margin-top: clamp(110px, 17vw, 250px); background: var(--ink); color: var(--white); position: relative; margin-left: var(--tape); padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 90px); display: grid; gap: clamp(24px, 4vw, 48px); }
.rail .wrap { padding-left: var(--gut); }
.rail__sticky { display: contents; }
.rail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; width: 100%; }
.rail__head .display { font-size: clamp(3rem, 7vw, 6.5rem); margin-top: 10px; }
.rail__head .display em { color: var(--ink); }
.rail__ctrl { display: flex; align-items: center; gap: 8px; }
.rail__note { max-width: 26ch; color: #b9bac2; font-size: 15px; margin-right: 16px; }
.arrow { width: 52px; height: 52px; flex: none; background: none; color: var(--white); border: 1.5px solid var(--white); font: 400 20px/1 var(--f-mono); cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.arrow:hover:not(:disabled) { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.arrow:disabled { opacity: .3; cursor: default; }
.rail__view { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding-bottom: 6px; overscroll-behavior-x: contain; }
.rail__view::-webkit-scrollbar { display: none; }
.rail__view.is-drag { cursor: grabbing; user-select: none; }
.rail__track { display: flex; gap: clamp(18px, 2.4vw, 40px); padding: 26px var(--gut) 0; width: max-content; position: relative; }
.rail__track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(#f7f7f8, #8d8e96); }
.piece { width: clamp(230px, 25vw, 360px); flex: none; transform-origin: 50% -26px; will-change: transform; position: relative; }
.piece::before { /* hanger hook */
  content: ""; position: absolute; left: 50%; top: -26px; width: 16px; height: 26px; margin-left: -8px;
  border: 2px solid #b9bac2; border-bottom: 0; border-radius: 9px 9px 0 0;
}
.piece__hang { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 5 / 6; overflow: hidden; background: #222227; cursor: zoom-in; }
.piece__hang img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; -webkit-user-drag: none; user-select: none; }
.piece:hover .piece__hang img { transform: scale(1.04); }
.is-sold .piece__hang img { filter: grayscale(1) contrast(1.05) brightness(.8); }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  font: 400 clamp(4rem, 7vw, 6.4rem)/.8 var(--f-display); color: var(--white); background: var(--red);
  padding: .1em .22em .16em; pointer-events: none;
}
.piece__tag { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 12px; align-items: baseline; }
.piece__tag .label { grid-column: 1 / -1; color: var(--pink); }
.piece__tag h3 { font: 500 16px/1.25 var(--f-body); }
.piece__tag p { grid-column: 1; color: #b9bac2; font-size: 14px; }
.status {
  grid-column: 2; grid-row: 2 / 4; align-self: center;
  font: 400 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid currentColor; padding: 8px 10px; transition: background .2s, color .2s;
}
a.status:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.status--sold { background: var(--red); border-color: var(--red); }

/* ───── lightbox ───── */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(17,17,20,.96); color: var(--white); }
.lb::backdrop { background: rgba(17,17,20,.6); }
.lb[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; animation: lbIn .25s ease both; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__fig { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; justify-items: center; align-items: center; }
.lb__fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; }
.lb__fig figcaption b { color: var(--pink); font-weight: 400; margin-right: .8em; }
.lb__fig figcaption i { font-style: normal; background: var(--red); padding: 2px 6px; margin-left: .8em; }
.lb__nav, .lb__close { width: 52px; height: 52px; background: none; color: var(--white); border: 1.5px solid var(--white); font: 400 20px/1 var(--f-mono); cursor: pointer; }
.lb__nav:hover, .lb__close:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.lb__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb.is-single .lb__nav { visibility: hidden; }
.sheet img { cursor: zoom-in; }

/* ───── about ───── */
.about { padding-top: clamp(110px, 17vw, 250px); padding-bottom: clamp(90px, 13vw, 190px); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.about__photos { grid-column: 1 / 6; position: relative; padding-bottom: 16%; }
.about__photos .frame { aspect-ratio: 2 / 3; }
.about__photos .about__small { position: absolute; right: -8%; bottom: 0; width: 44%; border: 6px solid var(--paper); }
.about__text { grid-column: 7 / 13; display: grid; gap: 18px; min-width: 0; }
.about__text > p:not(.lead) { color: var(--ink-soft); max-width: 52ch; }
.cv { display: grid; border-top: 1.5px solid var(--ink); margin-top: 14px; }
.cv li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--ink); font-size: 15px; color: var(--ink-soft); }
.cv b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.cv__when { font: 400 12px/1.9 var(--f-mono); letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills li { font: 400 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--ink); padding: 8px 10px; }
.skills li:nth-child(-n+3) { background: var(--ink); color: var(--pink); }

/* ───── contact ───── */
.contact { background: var(--pink); margin-left: var(--tape); border-top: 1.5px solid var(--ink); }
.contact .wrap { padding-left: var(--gut); }
.contact__inner { padding-block: clamp(70px, 10vw, 150px) 56px; display: grid; gap: clamp(24px, 4vw, 48px); }
.contact__big { font: 400 clamp(4rem, 13.5vw, 14rem)/.8 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
.contact__big em { background: var(--ink); color: var(--pink); }
.contact__lead { margin-top: clamp(10px, 2vw, 28px); max-width: 44ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; line-height: 1.35; }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 12px; }
.biglink { font: 500 clamp(1.25rem, 3vw, 2.3rem)/1.2 var(--f-body); letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.biglink:hover { background: var(--ink); color: var(--pink); text-decoration-color: transparent; }
.copy { font: 400 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: none; color: var(--ink); border: 1px solid var(--ink); padding: 9px 11px; cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--pink); }
.contact__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(50px, 8vw, 110px); padding-top: 14px; border-top: 1.5px solid var(--ink); }
.contact__foot b { font-weight: 400; }

/* ───── small screens ───── */
@media (max-width: 800px) {
  :root { --tape: 20px; }
  body { font-size: 16px; }
  .tape__nums span { font-size: 8px; left: 1px; }
  .readout { font-size: 11px; padding: 6px 7px; bottom: 10px; }
  .nav { padding: 10px 12px; }
  .nav__mark { font-size: 28px; }
  .nav nav a[href='#top'] { display: none; }
  .nav nav a { padding: 8px 5px; font-size: 10px; letter-spacing: .02em; }
  .hero__labels { display: none; }
  .frame--hero { aspect-ratio: 4 / 5; }
  .frame--hero img { object-position: 78% 50%; }
  .statement__text { margin-right: 0; }

  .grid > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .grid--symp .g-c, .grid--soft .g-d, .grid--tailor .g-a { grid-column: 1 / 7 !important; }
  .grid--symp .g-d, .grid--soft .g-e, .grid--tailor .g-b { grid-column: 7 / 13 !important; margin-top: 28px !important; }
  .grid--symp .g-e { grid-column: 3 / 11 !important; }
  .grid--dirndl .g-b { order: -1; }
  .sheet { flex-basis: 40%; }

  .piece { width: 68vw; scroll-snap-align: center; }
  .rail__view { scroll-snap-type: x proximity; }
  .rail__note { display: none; }
  .lb[open] { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 12px; }
  .lb__fig { grid-column: 1 / -1; grid-row: 1; padding-top: 60px; }
  .lb__nav { grid-row: 2; width: 100%; }

  .about__grid > * { grid-column: 1 / -1; }
  .about__photos { margin-right: 8%; }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .draw { animation: none; }
  .js .reveal { clip-path: none; transition: none; }
  .frame img[data-parallax] { transform: none; }
  .statement__text .w { opacity: 1; }
}
