/* ============================================================
   Studio Redirected — V2 (blocks concept)
   Self-contained stylesheet for v2.html. Bold Swiss blocks:
   periwinkle blue + golden yellow + cream, Arimo display +
   Gelasio italic serif. Interactions in v2.js.
   ============================================================ */

:root {
  --blue:    #a9bee7;
  --yellow:  #efd981;
  --cream:   #fbf7f1;
  --page:    #f3ede4;
  --ink:     #151515;
  --ink-70:  rgba(21,21,21,.7);
  --ink-48:  rgba(21,21,21,.48);
  --ink-30:  rgba(21,21,21,.3);
  --ink-16:  rgba(21,21,21,.16);
  --caption: #0f0f0f;
  --wine:    #561630;

  --sans:  "Arimo", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --arrow: "Inter", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 57.6px);
  --wrap:   1440px;
  --ease:   cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.arrow { font-family: var(--arrow); font-style: normal; }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 4px; font-size: 13px;
}
.skip:focus { left: 16px; }

/* ============================================================
   Top bar
   ============================================================ */

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: 72px;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.bar.is-stuck {
  background: var(--blue);
  box-shadow: 0 1px 0 rgba(21,21,21,.12);
}

.bar__inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  height: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.bar__brand { font-weight: 700; font-size: 14px; letter-spacing: .04em; }

.bar__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }

.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .04em; }
.lang__btn { color: rgba(21,21,21,.45); transition: color .2s; }
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { color: var(--ink); font-weight: 700; }
.lang__sep { color: rgba(21,21,21,.3); }

.bar__cta {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .2s;
}
.bar__cta:hover { opacity: .6; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--yellow);
  padding: 76px 0 clamp(28px, 4vw, 56px);
}

.hero__panel {
  position: relative;
  margin: clamp(14px, 2vw, 28px);
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 52px) clamp(40px, 5vw, 70px);
  background: var(--blue);
  overflow: hidden;
  min-height: min(76vh, 720px);
  display: flex; flex-direction: column;
}

.hero__title {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  color: var(--cream);
  font-size: clamp(46px, 9.4vw, 130px);
  line-height: .82;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.hero__tagline {
  margin-top: clamp(18px, 2.4vw, 34px);
  color: var(--yellow);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 5.1vw, 68px);
  line-height: .96;
  letter-spacing: -.05em;
  max-width: 16ch;
}

.hero__cards {
  margin-top: auto;
  width: 100%;
  padding-top: clamp(30px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px);
}

/* Static hero blocks (Websites / Software): label + description, always open */
.block {
  position: relative;
  border: 1px solid var(--ink-30);
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 38px) clamp(22px, 2.4vw, 40px);
  min-height: clamp(180px, 22vw, 240px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(16px, 2vw, 26px);
}

.block__label {
  font-size: clamp(34px, 4.6vw, 74px);
  line-height: .96; letter-spacing: -.08em;
}

.block__text {
  position: relative; z-index: 1;
  font-size: clamp(13px, 1.05vw, 15px); line-height: 1.55;
  max-width: 46ch; color: var(--ink-70);
}

.block--web  { background: var(--cream); }
.block--web  .block__label { color: var(--blue); }

.block--soft { background: var(--yellow); }
.block--soft .block__label { color: var(--ink); }

/* faint decorative ring in the hero blocks, echoing the Figma */
.block::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -150px; top: -190px;
  border: 1px solid rgba(21,21,21,.10); border-radius: 50%; pointer-events: none;
}

/* ============================================================
   Portfolio (horizontal rail)
   ============================================================ */

.work { background: var(--yellow); padding: clamp(70px, 8vw, 110px) 0 clamp(50px, 6vw, 80px); }

.work__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.work__eyebrow { font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.7); margin-bottom: 20px; }

.work__title { color: var(--cream); }
.work__title b { display: block; font-weight: 700; font-size: clamp(56px, 10vw, 144px); line-height: .78; letter-spacing: -.075em; }
.work__title i { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(42px, 7.3vw, 105px); line-height: 1; letter-spacing: -.075em; }

.work__controls { display: flex; gap: 8px; flex-shrink: 0; }
.rail-btn {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); color: #fff;
  display: grid; place-items: center; font-size: 16px;
  transition: background .25s, color .25s, opacity .25s;
}
.rail-btn:hover { background: #fff; color: var(--ink); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail-btn[disabled]:hover { background: none; color: #fff; }

.rail-viewport { overflow: hidden; }

.rail {
  display: flex; gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a, .rail.is-dragging .card { pointer-events: none; }

.card {
  flex: 0 0 min(920px, 82vw);
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.22);
  background: var(--caption);
  display: flex; flex-direction: column;
  cursor: pointer;
}

.card__visual {
  position: relative;
  height: clamp(340px, 42vw, 600px);
  overflow: hidden;
}

/* Coloured backdrop behind the floating screenshot */
.card--kd .card__visual {
  background:
    radial-gradient(60% 42% at 75% 18%, rgba(155,80,113,.32), transparent 60%),
    linear-gradient(155deg, #58162f 14%, #17050c 66%);
}
.card--femme .card__visual { background: linear-gradient(150deg, #b56c86 4%, #4a1330 92%); }
.card--anissa .card__visual { background: linear-gradient(150deg, #c9b6bf 4%, #5d4750 96%); }
.card--wealth .card__visual { background: linear-gradient(150deg, #37506b 8%, #101725 82%); }

/* Real project screenshot, floating with room around it.
   height:auto keeps the whole image visible (no cropping). */
.card__shot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 26px 64px rgba(20,5,12,.30);
}

/* browser mock inside a card */
.mock {
  position: relative; z-index: 1;
  width: min(616px, 68%);
  aspect-ratio: 616 / 406;
  background: rgba(247,242,235,.94);
  box-shadow: 0 34px 100px rgba(0,0,0,.25);
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 22px) clamp(16px, 1.8vw, 26px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mock--warm { background: #ffead7; }

.mock__bar { display: flex; gap: 5px; padding-bottom: 13px; border-bottom: 1px solid var(--ink-16); }
.mock__bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(21,21,21,.28); }
.mock__nav {
  display: flex; justify-content: space-between; gap: 12px; padding-top: 16px;
  font-size: clamp(7px, .8vw, 9px); letter-spacing: .08em; color: var(--ink);
}
.mock__nav b { font-weight: 700; }
.mock__title {
  margin-top: auto;
  font-weight: 700; font-size: clamp(30px, 4.3vw, 62px); line-height: .88; letter-spacing: -.06em;
}
.mock__title--serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mock__title--serif-r { font-family: var(--serif); font-style: normal; font-weight: 400; }
.mock__cta {
  margin-top: auto; font-size: clamp(7px, .8vw, 9px); letter-spacing: .08em; text-decoration: underline;
}

.card__cap {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; min-height: 98px;
  background: var(--caption);
}
.card__cap-no { font-size: 11px; color: rgba(255,255,255,.6); width: 42px; flex-shrink: 0; }
.card__cap-body { flex: 1; min-width: 0; }
.card__cap-body h3 { font-weight: 700; font-size: clamp(20px, 2vw, 28.8px); letter-spacing: -.03em; color: var(--cream); line-height: 1.14; }
.card__cap-body p { font-size: 12.8px; color: rgba(255,255,255,.58); margin-top: 6px; }
.card__cap-arrow { font-family: var(--arrow); font-size: 13px; color: rgba(255,255,255,.6); flex-shrink: 0; }
.card:hover .card__cap-arrow { color: #fff; }

.rail-foot {
  display: flex; align-items: center; gap: 22px;
  margin-top: 26px;
  font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.55);
}
.rail-foot__track { flex: 1; height: 1px; background: rgba(255,255,255,.18); position: relative; }
.rail-foot__bar { position: absolute; top: -1px; left: 0; height: 3px; width: 20%; background: var(--blue); transition: width .1s linear, left .1s linear; }

/* ============================================================
   About
   ============================================================ */

.about { background: var(--cream); display: grid; grid-template-columns: 1fr 1.1fr; }

/* Left panel same cream as the right; a square portrait sits in it. */
.about__photo {
  background: var(--cream);
  display: grid; place-items: center;
  min-height: 560px;
  padding: clamp(40px, 6vw, 90px);
}

.about__portrait {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #cbb6bf, #6f5560);
}
.about__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 32%; }
.about__portrait::after {
  content: "PORTRAIT — ADD PHOTO";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.about__portrait:has(img)::after { display: none; }

.about__body { padding: clamp(60px, 8vw, 130px) clamp(40px, 8vw, 115px); align-self: center; }
.about__body h2 { font-weight: 700; font-size: clamp(40px, 6.7vw, 96px); line-height: .9; letter-spacing: -.06em; }
.about__body h2 i { font-family: var(--serif); font-style: italic; font-weight: 400; }
.about__text { display: flex; gap: 30px; margin-top: clamp(34px, 4vw, 58px); }
.about__text p { flex: 1; font-size: 14px; line-height: 1.7; }
.about__link { display: inline-block; margin-top: 38px; font-size: 13px; text-decoration: underline; }

/* ============================================================
   Contact
   ============================================================ */

.contact { display: grid; grid-template-columns: 1fr 1fr; }

.contact__statement {
  background: var(--blue);
  padding: clamp(70px, 8vw, 115px) clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 720px;
}
.contact__statement .eyebrow { font-size: 11px; letter-spacing: .18em; }
.contact__statement h2 { font-size: clamp(60px, 9vw, 120px); line-height: .86; letter-spacing: -.075em; }
.contact__statement a { font-size: 13px; text-decoration: underline; }

.contact__form {
  background: var(--yellow);
  padding: clamp(60px, 7vw, 115px) clamp(40px, 6vw, 86px);
  display: flex; flex-direction: column; justify-content: center;
}
.form__intro {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 40px;
  font-size: 12px; letter-spacing: .08em;
}
.field { border-top: 1px solid var(--ink-30); padding: 18px 0 14px; }
.field label { display: block; font-size: 10px; letter-spacing: .14em; margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; border: 0; background: none; font-family: var(--sans);
  font-size: 16px; color: var(--ink); line-height: 1.2; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-48); }
.field input:focus, .field textarea:focus { outline: none; }
.field textarea { min-height: 84px; }
.form__submit {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 22px; margin-top: 28px;
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .12em;
  transition: opacity .25s;
}
.form__submit:hover { opacity: .9; }
.form__done { display: none; }
.form__done h3 { font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.form__done p { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 34ch; }
.contact__form.is-sent .form__intro,
.contact__form.is-sent form { display: none; }
.contact__form.is-sent .form__done { display: block; }

/* ============================================================
   Footer
   ============================================================ */

.foot { background: var(--cream); }
.foot__row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 84px;
  font-size: 10px; letter-spacing: .12em;
}

/* ============================================================
   Project modal (full-page, scrollable)
   ============================================================ */

.modal {
  position: fixed; inset: 0; z-index: 120;
  background: var(--page);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.modal.is-open { opacity: 1; visibility: visible; transform: none; }

.modal__brand {
  position: fixed; top: 26px; left: var(--gutter); z-index: 3;
  font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ink);
  transition: opacity .2s;
}
.modal__brand:hover { opacity: .55; }

.modal__close {
  position: fixed; top: 20px; right: var(--gutter); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; border-radius: 100px;
  font-size: 11px; letter-spacing: .12em;
}
.modal__close:hover { opacity: .9; }

.modal__hero { padding: clamp(90px, 12vw, 150px) 0 clamp(40px, 5vw, 70px); background: var(--blue); }
.modal__eyebrow { font-size: 11px; letter-spacing: .16em; margin-bottom: 22px; }
.modal__title { font-weight: 700; font-size: clamp(48px, 9vw, 130px); line-height: .84; letter-spacing: -.06em; color: var(--cream); }
.modal__tags { margin-top: 26px; font-size: 12px; letter-spacing: .06em; color: var(--ink); }

.modal__visit {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 12px 20px;
  background: var(--ink); color: var(--cream);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .2s;
}
.modal__visit:hover { opacity: .88; }

.modal__visual {
  height: clamp(300px, 46vw, 620px); margin-top: -1px;
  display: grid; place-items: center; overflow: hidden;
}
/* Detail photo: centred and capped, so it shows near its own
   resolution instead of being stretched full-width (keeps it sharp). */
.modal__visual--photo {
  height: auto;
  background: var(--cream);
  padding: clamp(32px, 5vw, 72px) var(--gutter);
  display: flex; justify-content: center;
}
.modal__visual--photo img {
  width: auto; height: auto;
  max-width: min(100%, 820px);
  max-height: 76vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 22px 56px rgba(20,5,12,.16);
}

.modal__gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.modal__gallery img { width: 100%; border: 1px solid var(--ink-16); }
@media (max-width: 720px) { .modal__gallery { grid-template-columns: 1fr; } }

.modal__section { padding: clamp(56px, 7vw, 100px) 0; background: var(--cream); }
.modal__section + .modal__section { border-top: 1px solid var(--ink-16); }
.modal__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 80px); }
.modal__grid h3 { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.modal__lede { font-size: clamp(22px, 3vw, 36px); line-height: 1.28; letter-spacing: -.02em; max-width: 22ch; }
.modal__grid p { font-size: 15px; line-height: 1.75; max-width: 60ch; }
.modal__grid p + p { margin-top: 18px; }
.modal__facts { display: grid; gap: 14px; }
.modal__facts div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink-16); padding-bottom: 12px; font-size: 14px; }
.modal__facts span:first-child { color: rgba(21,21,21,.55); }

.modal__next { background: var(--yellow); padding: clamp(50px, 6vw, 90px) 0; }
.modal__next button {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  font-weight: 700; font-size: clamp(30px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; text-align: left;
}
.modal__next small { display: block; font-weight: 400; font-size: 11px; letter-spacing: .14em; color: var(--ink-70); margin-bottom: 14px; }

/* ============================================================
   Reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .flip__inner, .modal { transition: none; }
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { min-height: 380px; }
  .contact { grid-template-columns: 1fr; }
  .contact__statement { min-height: 0; }
  .modal__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .bar__cta { font-size: 11px; letter-spacing: .06em; }
  .hero__title { flex-direction: column; white-space: normal; gap: 0; line-height: .84; }
  .hero__cards { grid-template-columns: 1fr; }
  .about__text { flex-direction: column; gap: 22px; }
  .form__intro { flex-direction: column; gap: 8px; }
  /* Portfolio heading and its arrows stack instead of fighting for width */
  .work__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work__controls { align-self: flex-end; }
}

@media (max-width: 480px) {
  .hero__panel { margin: 10px; padding: 26px 20px 40px; }
  .hero__title { font-size: clamp(38px, 12vw, 60px); }
  .hero__tagline { font-size: clamp(26px, 8vw, 40px); }
  .block__label { font-size: clamp(34px, 11vw, 46px); }
  .work__title b { font-size: clamp(42px, 13vw, 60px); }
  .work__title i { font-size: clamp(32px, 10vw, 46px); }
  .contact__statement { min-height: 0; padding: 64px 28px; gap: 32px; }
  .contact__statement h2 { font-size: clamp(46px, 14vw, 70px); }
  .contact__form { padding: 56px 28px; }
  .rail-btn { width: 46px; height: 46px; }
  .card__visual { height: clamp(300px, 62vw, 420px); }
}
