/* Landing page styles — ported 1:1 from the original Claude Design export,
   with hover states moved out of inline attributes into real CSS. */

html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: #0071e3; text-decoration: none; }
a:hover { color: #0077ed; }
*, *::before, *::after { box-sizing: border-box; }

@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hintDown { 0%,100% { opacity: .45; transform: translateY(0); } 50% { opacity: 1; transform: translateY(5px); } }

/* Scroll reveals are scrubbed by scroll position: --rv goes 0 → 1 as the
   element enters, so content is never left permanently hidden. */
[data-reveal] { opacity: var(--rv, 1); transform: translateY(calc((1 - var(--rv, 1)) * 26px)); }

.page { min-height: 100vh; background: #f5f5f7; overflow-x: clip; }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 clamp(13px, 3.2vw, 26px);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.hdr__brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; width: max-content; padding-right: 2px; color: inherit; }
.hdr__brand span {
  font-size: clamp(13px, 2.6vw, 14.5px); font-weight: 650; letter-spacing: -0.02em;
  color: #1d1d1f; white-space: nowrap;
}
.hdr__nav { display: flex; align-items: center; gap: clamp(0px, 0.6vw, 4px); flex: 0 0 auto; }
.hdr__link {
  padding: 6px clamp(6px, 1.6vw, 11px); border-radius: 980px;
  font-size: clamp(12px, 2.3vw, 13px); font-weight: 500; color: #86868b; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.hdr__link:hover { background: rgba(0,0,0,0.06); color: #1d1d1f; }

.lang { position: relative; margin-left: 6px; }
.lang__btn {
  padding: 6px; border: none; background: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 500; color: #86868b; transition: color .15s ease;
}
.lang__btn:hover { color: #1d1d1f; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 172px; padding: 5px;
  border-radius: 12px; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 18px 50px rgba(0,0,0,0.14);
  animation: fadeUp .18s cubic-bezier(.2,.9,.3,1);
}
.lang__menu[hidden] { display: none; }
.lang__item {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 8px; font-size: 13px; text-align: left; color: #1d1d1f;
}
.lang__item span:first-child { font-weight: 550; }
.lang__item span:last-child { font-size: 11px; opacity: .55; }
.lang__item:hover { background: #0071e3; color: #fff; }
.lang__item--active { color: #0071e3; background: rgba(0,113,227,0.1); }
.lang__item--active span:last-child { opacity: .7; }
.lang__item--active:hover { background: rgba(0,113,227,0.1); color: #0071e3; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
/* The backgrounds are <picture> elements so the browser can pick the width from
   the real viewport and DPR — a 4K desktop gets a 3400px file, a phone 1280px. */
.hero__bg { position: absolute; inset: 0; z-index: 0; display: block; background: #1c1c1e; }
.hero__bg img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
  animation: kenburns 26s ease-out forwards;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.18) 34%, rgba(0,0,0,0.30) 72%, rgba(0,0,0,0.55) 100%);
}
.hero__inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: clamp(14px, 2.4vw, 20px);
  padding: clamp(96px, 16vh, 118px) clamp(18px, 5vw, 24px) clamp(64px, 12vh, 96px);
  max-width: 780px;
}
.hero__portrait {
  width: clamp(92px, 22vw, 116px); height: clamp(92px, 22vw, 116px); border-radius: 50%;
  object-fit: cover; box-shadow: 0 10px 34px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.3);
  opacity: 0; animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .1s forwards;
}
.hero__title {
  margin: 0; font-size: clamp(32px, 7.4vw, 68px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.03em; color: #fff; text-wrap: balance;
  opacity: 0; animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) .24s forwards;
}
.hero__subtitle {
  margin: 0; max-width: 560px; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; color: #fff;
  text-shadow: 0 1px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); text-wrap: balance;
  opacity: 0; animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) .4s forwards;
}
.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px;
  opacity: 0; animation: fadeUp 1s cubic-bezier(.2,.8,.2,1) .56s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 980px;
  padding: 13px clamp(20px, 5.4vw, 26px); font-size: clamp(14px, 3.4vw, 14.5px); font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary { color: #fff; background: #0071e3; box-shadow: 0 10px 30px rgba(0,113,227,0.38); }
.btn--primary:hover { transform: translateY(-2px); background: #0077ed; box-shadow: 0 14px 36px rgba(0,113,227,0.46); color: #fff; }
.btn--ghost {
  color: #fff; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.34);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.26); color: #fff; }

/* ---------- about ---------- */
.about { background: #fff; padding: clamp(64px, 12vh, 150px) clamp(18px, 5vw, 26px); }
.about__inner { max-width: 860px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #86868b;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.about__heading {
  margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.16; font-weight: 700;
  letter-spacing: -0.025em; color: #1d1d1f; text-wrap: pretty;
  transition: opacity .8s ease .06s, transform .8s cubic-bezier(.2,.8,.2,1) .06s;
}
.about__body {
  margin: 26px 0 0; max-width: 640px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6;
  color: #45454c; text-wrap: pretty;
  transition: opacity .8s ease .12s, transform .8s cubic-bezier(.2,.8,.2,1) .12s;
}
.about__cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px; margin-top: clamp(34px, 6vw, 56px);
}
.about__card {
  padding: 24px 22px 26px; border-radius: 16px; background: #f5f5f7; border: 1px solid rgba(0,0,0,0.05);
  transition: opacity .8s ease .18s, transform .8s cubic-bezier(.2,.8,.2,1) .18s;
}
.about__card:nth-child(2) { transition-delay: .26s; }
.about__card:nth-child(3) { transition-delay: .34s; }
.about__card h3 { margin: 0; font-size: 13.5px; font-weight: 650; letter-spacing: -0.01em; color: #1d1d1f; }
.about__card p { margin: 7px 0 0; font-size: 13.5px; line-height: 1.55; color: #86868b; }

/* ---------- work ---------- */
.work {
  background: #f5f5f7; padding: clamp(64px, 12vh, 150px) clamp(18px, 5vw, 26px);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.work__inner { max-width: 1060px; margin: 0 auto; }
.work .eyebrow { margin-bottom: 18px; }
.work__heading {
  margin: 0; max-width: 620px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18;
  font-weight: 700; letter-spacing: -0.025em; color: #1d1d1f; text-wrap: balance;
  transition: opacity .8s ease .06s, transform .8s cubic-bezier(.2,.8,.2,1) .06s;
}
/* The vertical padding is the room the card hover shadow needs — `overflow:
   hidden` clips it otherwise. Margins cancel it out so the spacing is unchanged. */
.marquee {
  width: 100vw; margin: calc(clamp(32px, 6vw, 48px) - 32px) 0 -40px calc(50% - 50vw);
  padding: 36px 0 52px;
  overflow: hidden; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.marquee--static { overflow-x: auto; cursor: default; }
.marquee__track {
  display: flex; gap: clamp(14px, 3vw, 22px); width: max-content;
  padding: 0 clamp(18px, 5vw, 26px); will-change: transform;
}
.card {
  display: block; color: inherit; flex: 0 0 auto; width: min(340px, 82vw); border-radius: 18px;
  overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,0.07);
  transition: opacity .8s ease .1s, transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
a.card:hover { box-shadow: 0 12px 34px rgba(0,0,0,0.12); color: inherit; }
.card__media {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: repeating-linear-gradient(135deg, #ececf0 0 10px, #f4f4f7 10px 20px);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  letter-spacing: 0.04em; color: #9a9aa1;
}
.card__body { padding: 18px 20px 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__title { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.card__arrow { font-size: 12px; color: #86868b; }
.card__desc { margin-top: 7px; font-size: 13.5px; line-height: 1.55; color: #86868b; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card__tag {
  padding: 3px 10px; border-radius: 980px; font-size: 11.5px; font-weight: 500;
  color: #86868b; background: rgba(0,0,0,0.04);
}
.work__empty { margin: clamp(32px, 6vw, 48px) 0 0; color: #86868b; font-size: 14px; }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 12vh, 160px) clamp(16px, 4.5vw, 24px);
}
.contact__bg { position: absolute; inset: 0; z-index: 0; display: block; background: #e6e6eb; }
.contact__bg img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 60%;
}
.contact__scrim { position: absolute; inset: 0; z-index: 1; background: rgba(255,255,255,0.1); }
.contact__card {
  position: relative; z-index: 2; width: 100%; max-width: 520px; margin: 0 auto; text-align: center;
  padding: clamp(32px, 7vw, 44px) clamp(20px, 6vw, 36px) clamp(30px, 6.5vw, 40px);
  border-radius: 26px; background: rgba(255,255,255,0.62);
  backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
  border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 24px 70px rgba(0,0,0,0.14);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.contact__card h2 {
  margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 700;
  letter-spacing: -0.025em; color: #1d1d1f; text-wrap: balance;
}
.contact__card p { margin: 14px auto 0; max-width: 380px; font-size: 15px; line-height: 1.55; color: #45454c; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.contact__actions .btn {
  padding: 13px clamp(18px, 5vw, 24px); font-size: clamp(13.5px, 3.4vw, 14px);
  max-width: 100%; word-break: break-word;
}
.btn--tg { color: #fff; background: #0071e3; box-shadow: 0 8px 24px rgba(0,113,227,0.32); }
.btn--tg:hover { transform: translateY(-2px); background: #0077ed; color: #fff; }
.btn--mail { color: #1d1d1f; background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.09); }
.btn--mail:hover { transform: translateY(-2px); background: #fff; color: #1d1d1f; }
.contact__social {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid rgba(0,0,0,0.08);
}
.contact__social a { font-size: 13px; font-weight: 500; color: #45454c; transition: color .15s ease; }
.contact__social a:hover { color: #0071e3; }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px;
  padding: 22px clamp(18px, 5vw, 26px) calc(26px + env(safe-area-inset-bottom));
  background: #f5f5f7; border-top: 1px solid rgba(0,0,0,0.05); color: #86868b; font-size: 12.5px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px;
  background: #fff; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg img { animation: none; }
  .hero__portrait, .hero__title, .hero__subtitle, .hero__actions { opacity: 1; animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .lang__menu { animation: none; }
  .btn { transition: none; }
}
