/* v2 additions on top of style.css + theme.css (Pastel Bulut): language switch, About bento, Contact. */

/* nav: links centred, language switch on the right */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; }
.lang { justify-self: end; display: inline-flex; padding: 4px; gap: 2px; border-radius: 99px; background: #fff; box-shadow: 0 6px 24px -12px rgba(42, 35, 64, .25); }
.lang button { padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--text); }
.lang button:hover { color: var(--text); }

/* hero label without the status dot: even padding on both sides */
.hero .pill { padding: 7px 14px; }

/* draft banner when the admin previews unsaved changes */
.draft-bar { position: fixed; z-index: 60; left: 50%; bottom: 18px; translate: -50% 0; padding: 9px 16px; border-radius: 99px; background: var(--text); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(42, 35, 64, .6); }

/* ---------- About: a playful bento of pastel cards ---------- */
#about { padding-bottom: clamp(30px, 5vw, 70px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: 14px; }
.b-card { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(18px, 2.2vw, 28px); background: #fff; box-shadow: 0 18px 40px -28px rgba(42, 35, 64, .45); }
.b-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.b-statement { grid-column: span 7; grid-row: span 2; background: var(--lilac); display: flex; align-items: flex-end; }
.b-statement { padding-top: clamp(56px, 6vw, 90px); }
.b-statement p { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(22px, 2.5vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; color: var(--text); max-width: min(640px, calc(100% - 60px)); }
.b-shape { position: absolute; width: 140px; height: 140px; right: -34px; top: -44px; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; background: var(--accent); opacity: .9; animation: morph 12s ease-in-out infinite alternate; }
.b-num { grid-column: span 5; background: var(--accent); display: flex; flex-direction: column; justify-content: flex-end; }
.b-num b { font-family: var(--display); font-size: clamp(56px, 7vw, 104px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--text); }
.b-num span { font-weight: 600; color: var(--text); }
.b-since { grid-column: span 5; background: var(--mint); display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; color: var(--text); }
.b-since svg { flex: none; width: 40px; fill: var(--ink-accent); animation: twinkle 3.6s ease-in-out infinite; }
.b-focus { grid-column: span 5; background: var(--butter); }
.b-focus ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.b-focus li { padding: 8px 14px; border-radius: 99px; background: #fff; font-weight: 600; font-size: 14.5px; color: var(--text); transform: rotate(calc((var(--i) - 2) * 1.2deg)); }
/* end-to-end process: the steps are colour swatch chips, fanned like a swatch book; hovering squares them up */
.b-process { grid-column: span 7; background: var(--sky); display: flex; flex-direction: column; }
.b-process ol { list-style: none; display: flex; padding: 10px 6px 6px; margin: 2px 0 18px; }
.b-process li {
  --c: var(--accent);
  flex: 1 1 0; min-width: 0; max-width: 168px; display: grid; gap: 4px; align-content: start;
  margin-left: -12px; padding: 7px 7px 12px; border-radius: 12px; background: #fff;
  box-shadow: 0 16px 28px -20px rgba(42, 35, 64, .6), 0 1px 0 rgba(42, 35, 64, .06);
  rotate: calc((var(--i) - 1.5) * 3.5deg); transform-origin: 50% 130%;
  transition: rotate .5s var(--ease), translate .4s var(--ease);
}
.b-process li:first-child { margin-left: 0; }
.b-process li:nth-child(2) { --c: var(--accent-2); } .b-process li:nth-child(3) { --c: var(--mint); } .b-process li:nth-child(4) { --c: var(--peach); }
.b-process li i { display: block; aspect-ratio: 5 / 4; margin-bottom: 6px; border-radius: 7px; background: var(--c); }
.b-process li span { padding: 0 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-process li b { padding: 0 3px; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.15; letter-spacing: -.01em; color: var(--text); }
.b-process ol:hover li { rotate: 0deg; }
.b-process li:hover { translate: 0 -8px; }
.b-process p { margin-top: auto; color: var(--text); font-weight: 500; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .b-process li { transition: none; } }

/* pictures still on their way: a soft shimmer on the card, then the picture fades in */
.work.loading, .tile.loading, .card.loading {
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 70%), linear-gradient(var(--lilac), var(--lilac));
  background-size: 220% 100%, 100% 100%; animation: shimmer 1.3s linear infinite;
}
.work img, .tile img:not(.alt), .stack .card img { transition: opacity .45s ease, transform .9s var(--ease), filter .5s; }
.loading img:not(.alt) { opacity: 0; }
@keyframes shimmer { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .work.loading, .tile.loading, .card.loading { animation: none; } }

/* mobile menu button (hidden on wide screens, where the links sit in the header) */
.menu-btn { display: none; }

/* ---------- Contact ---------- */
#contact { padding: clamp(40px, 6vw, 90px) 0 0; }
.contact-v2 { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 60px); padding: clamp(28px, 5vw, 64px); border-radius: 44px; background: var(--lilac); }
.contact-v2::before { content: ""; position: absolute; width: 320px; height: 320px; left: -90px; bottom: -140px; border-radius: 50%; background: var(--accent); opacity: .8; }
.contact-v2::after { content: ""; position: absolute; width: 120px; height: 120px; right: 34%; top: -40px; border-radius: 42% 58% 60% 40% / 50% 45% 55% 50%; background: var(--mint); }
.c-left, .c-form { position: relative; z-index: 1; }
.contact-v2 h2 { font-family: var(--display); font-weight: 750; font-size: clamp(38px, 5vw, 74px); line-height: .98; letter-spacing: -.045em; margin-top: 16px; color: var(--text); }
.c-text { margin-top: 16px; color: var(--muted); max-width: 440px; font-size: 16px; }
.c-mail { display: inline-block; margin-top: 26px; font-family: var(--display); font-weight: 650; font-size: clamp(18px, 2vw, 26px); color: var(--text); border-bottom: 3px solid var(--accent); padding-bottom: 2px; word-break: break-all; }
.c-mail:hover { color: var(--ink-accent); }
.c-links { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.c-form { display: grid; gap: 12px; align-content: start; background: #fff; border-radius: 28px; padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 24px 50px -30px rgba(42, 35, 64, .5); }
.c-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.c-form input, .c-form textarea { font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 2px solid transparent; border-radius: 16px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color .2s, background .2s; }
.c-form input:focus, .c-form textarea:focus { border-color: var(--accent-2); background: #fff; }
.c-form .btn { justify-self: start; margin-top: 4px; }
.c-note { font-size: 12.5px; color: var(--dim); }

@media (max-width: 1080px) {
  .b-statement { grid-column: span 12; grid-row: auto; min-height: 220px; }
  .b-num, .b-since, .b-focus { grid-column: span 6; }
  .b-process { grid-column: span 12; }
  .contact-v2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto auto; gap: 10px; }
  .menu-btn { display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 6px 24px -12px rgba(42, 35, 64, .25); }
  .menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: translate .3s var(--ease), rotate .3s var(--ease); }
  .nav.open .menu-btn span:first-child { translate: 0 3.5px; rotate: 45deg; }
  .nav.open .menu-btn span:last-child { translate: 0 -3.5px; rotate: -45deg; }
  .nav.open .nav-links {
    display: grid; gap: 2px; position: absolute; top: calc(100% + 4px); left: var(--gutter); right: var(--gutter);
    padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -20px rgba(42, 35, 64, .45);
    animation: menu-in .28s var(--ease);
  }
  .nav.open .nav-links a { padding: 14px 16px; border-radius: 16px; font-family: var(--display); font-size: 18px; font-weight: 650; color: var(--text); }
  .nav.open .nav-links a.active { background: var(--lilac); }
  .b-process ol { padding: 8px 2px 4px; }
  .b-process li { margin-left: -8px; padding: 5px 5px 10px; border-radius: 10px; rotate: calc((var(--i) - 1.5) * 2.5deg); }
  .b-process li i { border-radius: 6px; margin-bottom: 4px; }
  .b-process li span { font-size: 9px; letter-spacing: .06em; }
  .b-process li b { font-size: 12.5px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .b-card { border-radius: 24px; grid-column: span 2 !important; }
  .b-num { grid-column: span 1 !important; }
  /* same 10px side margin as the project cards; a negative margin here pushed the card off the left edge */
  .contact-v2 { border-radius: 30px; width: calc(100% - 20px); }
}
@keyframes menu-in { from { opacity: 0; translate: 0 -6px; } }

/* ---------- calmer look: fewer floating shapes, so the work leads ---------- */
/* section heads: title left, one-line intro right (the big outline numbers are gone) */
.sec-head { grid-template-columns: 1fr minmax(0, 380px); }
.sec-head p { grid-column: 2; }
/* section labels: plain small caps instead of tilted yellow pills with a star */
.eyebrow { display: block; padding: 0; background: none; border-radius: 0; transform: none; color: var(--ink-accent); }
.eyebrow::before { content: none; }
/* no corner blobs on project and contact cards */
.case::before, .contact-v2::before, .contact-v2::after { content: none; }
/* client strip: level, one typeface, quieter */
.marquee { transform: none; margin: 0; box-shadow: none; background: transparent; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee span, .marquee span:nth-child(even) { font-family: var(--display); font-style: normal; font-weight: 600; font-size: clamp(17px, 1.8vw, 24px); color: var(--muted); }
.marquee span::after { content: "·"; font-size: 1em; color: var(--dim); }

/* contact form: hidden trap field for bots, status line */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.c-status { min-height: 1.3em; font-size: 14px; font-weight: 600; color: var(--muted); }
.c-status.ok { color: #1d7a4f; }
.c-status.err { color: #b3261e; }
.c-status a { color: inherit; text-decoration: underline; }
.c-form .btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { grid-column: auto; }
}
