@font-face { font-family: "Unbounded"; src: url("../fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --paper: #f4f3ef;
  --paper-2: #e9e7e1;
  --ink: #111111;
  --ink-2: #4c4a45;
  --mute: #8a877f;
  --line: #cfccc4;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: currentColor; transition: right .3s ease; }
.nav a:not(.btn):hover::after { right: 0; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; color: var(--ink); }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; transition: transform .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero */
.hero { padding: clamp(56px, 10vw, 140px) 0 clamp(56px, 8vw, 110px); }
.hero .label { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb26a; box-shadow: 0 0 0 4px rgba(63,178,106,.18); }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 7.4vw, 112px); line-height: .98; letter-spacing: -.045em; max-width: 13ch; }
.hero-foot { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero-foot p { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.hero-foot .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Section head */
.section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.s-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.s-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.s-head p { color: var(--ink-2); max-width: 44ch; justify-self: end; }
.s-head .label { display: block; margin-bottom: 18px; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.work-card .media { position: relative; border-radius: 14px; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.work-card .media .tint { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--tint) 30%, var(--paper-2)) 0%, var(--paper-2) 72%); }
.work-card .screen { position: relative; width: 82%; aspect-ratio: 1.95; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.06); transition: transform .6s cubic-bezier(.2,.7,.2,1); background: #000; }
.work-card .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card .phone { position: absolute; right: 7%; bottom: 9%; width: 17%; aspect-ratio: 493 / 866; border-radius: 14px; overflow: hidden; border: 3px solid #161616; box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); transition: transform .6s cubic-bezier(.2,.7,.2,1); background: #000; }
.work-card .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-card:hover .screen { transform: translateY(-6px) scale(1.015); }
.work-card:hover .phone { transform: translateY(-12px); }
.work-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.work-card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; }
.work-card .meta span { font-size: 14px; color: var(--mute); text-align: right; }
.work-card .more { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.work-card:hover .more { color: var(--ink); }

/* Services */
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 80px 1.1fr 1.4fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row .n { font-size: 13px; color: var(--mute); }
.row h3 { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.1; }
.row p { color: var(--ink-2); }
.row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.row li { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 28px 24px 32px; background: var(--paper-2); border-radius: 14px; min-height: 240px; display: flex; flex-direction: column; }
.step .n { font-family: var(--display); font-size: 14px; color: var(--mute); }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; margin-top: auto; padding-top: 48px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.about .big { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.about .body p + p { margin-top: 18px; }
.about .body p { color: var(--ink-2); font-size: 18px; }
.about .facts { margin-top: 36px; border-top: 1px solid var(--line); }
.about .facts div { display: grid; grid-template-columns: 140px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about .facts dt { color: var(--mute); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
blockquote { margin-top: 40px; font-family: var(--display); font-size: 18px; letter-spacing: -.02em; line-height: 1.4; color: var(--ink); }
blockquote span { display: block; margin-top: 8px; font-family: var(--text); font-size: 13px; color: var(--mute); letter-spacing: 0; }

/* Contact / dark */
.dark { background: var(--ink); color: var(--paper); }
.dark .label { color: #9a978f; }
.contact { padding: clamp(80px, 12vw, 170px) 0 clamp(48px, 6vw, 80px); }
.contact h2 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 9vw, 140px); line-height: .95; letter-spacing: -.05em; }
.contact .mail { display: inline-block; margin-top: clamp(32px, 4vw, 56px); font-family: var(--display); font-size: clamp(20px, 3vw, 40px); letter-spacing: -.03em; border-bottom: 2px solid currentColor; padding-bottom: 4px; transition: opacity .2s; }
.contact .mail:hover { opacity: .7; }
.c-grid { margin-top: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid #333; padding-top: 24px; font-size: 15px; }
.c-grid .label { display: block; margin-bottom: 6px; }
.c-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 28px 0 36px; font-size: 13px; color: #9a978f; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #333; padding-top: 28px; }
.site-footer img { height: 28px; }

/* Project detail */
.p-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.back { display: inline-flex; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: clamp(32px, 5vw, 64px); }
.back:hover { color: var(--ink); }
.p-hero .logo-tile { display: inline-flex; align-items: center; justify-content: center; height: 72px; padding: 0 24px; border-radius: 10px; margin-bottom: 28px; }
.p-hero .logo-tile img { max-height: 44px; max-width: 200px; object-fit: contain; }
.p-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 7vw, 100px); line-height: 1; letter-spacing: -.045em; }
.p-hero .lead { margin-top: 20px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; }
.p-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; }
.p-facts .label { display: block; margin-bottom: 6px; }
.p-facts a { border-bottom: 1px solid currentColor; }

.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.06); }
.browser .bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #ecebe6; border-bottom: 1px solid #dddbd4; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #cfccc4; }
.browser .bar span { margin-left: 16px; flex: 1; max-width: 360px; height: 24px; border-radius: 6px; background: #f8f7f4; font-size: 12px; color: var(--mute); display: flex; align-items: center; padding: 0 12px; }
.stage-wide { padding: clamp(24px, 5vw, 72px); border-radius: 18px; }

.p-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 9vw, 120px) 0; }
.p-body h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.15; }
.p-body p { font-size: 18px; color: var(--ink-2); }
.p-body ul { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.p-body li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.p-body li::before { content: "→"; color: var(--mute); }

.p-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.p-mobile .stage-m { border-radius: 18px; padding: clamp(32px, 6vw, 80px) 0; display: flex; justify-content: center; }
.p-mobile .ph { width: min(280px, 62%); aspect-ratio: 493 / 866; border-radius: 34px; overflow: hidden; border: 8px solid #161616; box-shadow: 0 40px 70px -30px rgba(0,0,0,.55); background: #000; }
.p-mobile .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p-mobile .txt { padding: 0 clamp(0px, 3vw, 48px); }
.p-mobile .txt h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px; }
.p-mobile .txt p { color: var(--ink-2); font-size: 18px; }
.p-mobile .txt .btn { margin-top: 32px; }

.next { display: block; border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 110px) 0; transition: background .3s; }
.next:hover { background: var(--paper-2); }
.next .label { display: block; margin-bottom: 14px; }
.next strong { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 7vw, 96px); letter-spacing: -.045em; line-height: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.next strong em { font-style: normal; transition: transform .3s; }
.next:hover strong em { transform: translateX(10px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

/* Responsive */
@media (max-width: 960px) {
  .s-head, .about, .p-body, .p-mobile { grid-template-columns: 1fr; }
  .s-head p { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 48px 1fr; }
  .row p, .row .desc { grid-column: 2; }
  .p-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 28px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .nav a:not(.btn) { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 22px; }
  .nav .btn { margin-top: 20px; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .hero-foot { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .c-grid { grid-template-columns: 1fr; }
  .about .facts div { grid-template-columns: 110px 1fr; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Fixes */
.back { display: flex; width: max-content; }
.p-body { padding: clamp(64px, 9vw, 120px) var(--pad); }
.about { align-items: start; }
.foot-right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 4px 10px; border-radius: 999px; border: 1px solid #333; color: #9a978f; font-size: 12px; letter-spacing: .06em; transition: color .2s, border-color .2s; }
.lang a:hover { color: var(--paper); border-color: #666; }
.lang a[aria-current] { color: var(--paper); border-color: var(--paper); }
@media (max-width: 760px) { .brand img { height: 32px; } .foot-right { flex-direction: column-reverse; align-items: flex-start; gap: 16px; } }
.nav-lang { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .04em; color: var(--mute); }
.nav-lang span { opacity: .5; }
.nav .nav-lang a { color: var(--mute); transition: color .2s; }
.nav .nav-lang a::after { display: none; }
.nav .nav-lang a:hover, .nav .nav-lang a[aria-current] { color: var(--ink); }
@media (max-width: 760px) {
  .nav .nav-lang { padding: 18px 0 0; font-size: 15px; gap: 10px; }
  .nav .nav-lang a { width: auto; padding: 0; border: 0; font-family: var(--text); font-size: 15px; }
}
