/* H. Studio — editorial B&W
   intentionally distinct from creator-profile sites
   (no ticker, no scan, no grid, no neon — just type + whitespace) */

:root {
  --bg: #f6f4ee;            /* warm paper white */
  --bg-pure: #ffffff;
  --ink: #0a0a0a;
  --ink-dim: rgba(10, 10, 10, .62);
  --ink-faint: rgba(10, 10, 10, .36);
  --ink-mute: rgba(10, 10, 10, .18);
  --line: rgba(10, 10, 10, .16);
  --line-soft: rgba(10, 10, 10, .08);
  --pad: clamp(20px, 3.5vw, 56px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif,
.hero__title,
.seg__title,
.proj__name,
.svc__name,
.proc__step h4,
.contact__lbl {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.01em;
}

.mono,
.seg__num,
.seg__sub,
.sideblock__k,
.svc__num,
.proc__n,
.proj__n,
.topbar,
.foot,
.btn {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

/* ================================================
   TOP BAR — thin, static, no animation
================================================ */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar__l { font-weight: 600; }
.topbar__sub { font-weight: 400; opacity: .55; margin-left: 4px; }
.topbar__m { font-size: 11px; opacity: .55; }
.topbar__r {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__r .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ================================================
   HERO — editorial, B&W, single statement
================================================ */
.hero {
  /* desktop: tighter top spacing per feedback — was clamp(56px, 9vw, 140px) */
  padding: clamp(20px, 2.4vw, 40px) var(--pad) clamp(56px, 7vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
@media (min-width: 881px) {
  /* desktop-only override: pull hero closer to topbar */
  .hero { padding-top: 24px; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  max-width: 36ch;
}

.hero__title {
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: .95;
  letter-spacing: -.028em;
  margin: 0 0 40px;
  font-weight: 300;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__lede {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 36px;
  max-width: 54ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s ease;
}
.btn__arrow {
  font-size: 14px;
  transition: transform .2s;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: transparent; color: var(--ink); }

.btn--quiet { border-color: var(--line); color: var(--ink-dim); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }

/* side block (right column) */
.hero__side {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  padding-top: 4px;
}
.sideblock {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.sideblock:last-child { border-bottom: 0; }
.sideblock__k {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 3px;
}
.sideblock__v { color: var(--ink); font-weight: 500; }

/* ================================================
   SECTIONS — shared
================================================ */
.seg {
  padding: clamp(72px, 9vw, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}
.seg__head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 60px;
  padding-bottom: 18px;
}
.seg__num {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--ink-dim);
  border: 1px solid var(--ink);
  padding: 4px 10px;
}
.seg__title {
  font-size: clamp(40px, 5vw, 72px);
  margin: 0;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.02em;
}
.seg__sub {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ================================================
   01 / SERVICES
================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
@media (max-width: 880px) {
  .services { grid-template-columns: 1fr; }
}
.svc {
  padding: 36px 32px 32px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background .2s;
}
.svc:last-child { border-right: 0; }
.svc:hover { background: var(--bg-pure); }
@media (max-width: 880px) {
  .svc { border-right: 0; border-bottom: 1px solid var(--ink); }
  .svc:last-child { border-bottom: 0; }
}
.svc__num {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.svc__name {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 18px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.svc__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 26px;
  min-height: 5.4em;
}
.svc__list {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.svc__list li {
  font-size: 13px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.svc__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* ================================================
   02 / PROJECTS — ejatd29-style card grid
================================================ */
.work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 720px) {
  .work { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .work { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 360px) {
  .work { grid-template-columns: 1fr; gap: 14px; }
}

.is-hidden { display: none !important; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-pure);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ink);
  transition: transform .3s var(--ease, cubic-bezier(.2,.7,.2,1)),
              border-color .3s,
              box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}
.card:active {
  transform: translateY(-2px) scale(.995);
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transition: transform .08s ease, box-shadow .08s ease;
}
.card:active .frame {
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* Mobile: armed (first tap) — keep arrow visible + slight ring. */
.card.is-armed {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink), 0 12px 30px rgba(0, 0, 0, .12);
}
.card.is-armed .card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.proj--srg { border-color: rgba(196, 64, 50, .25); }
.proj--srg:hover { border-color: #c44032; }

.card__media { display: none; }

/* ===== Browser Frame (hub project card) ===== */
.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #e8e8e8;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.frame__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f3f3f3 0, #e6e6e6 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
  cursor: default;
}
.frame__dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.frame__dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  border: 1px solid rgba(0,0,0,.08);
}
.frame__dots i:nth-child(1) { background: #ff5f57; }
.frame__dots i:nth-child(2) { background: #febc2e; }
.frame__dots i:nth-child(3) { background: #28c840; }
.frame__url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}
.frame__url svg { flex-shrink: 0; color: var(--ink-faint); }
.frame__refresh {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ink-faint);
  background: transparent;
  border: 0;
  cursor: default;
  font-family: inherit;
}

/* Frame wrapper link - click anywhere on screenshot/frame opens the site */
.frame__link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: inherit;
}
.frame__link:hover { text-decoration: none; color: inherit; }
.frame__link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.frame__viewport {
  position: relative;
  overflow-y: scroll;
  overflow-x: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) rgba(255,255,255,.08);
  cursor: ns-resize;
  -webkit-overflow-scrolling: touch;
}
.frame__viewport::after {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  pointer-events: none;
  margin-top: -18px;
}
.frame__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
/* Slim, transparent scrollbar — Mac-style overlay */
.frame__viewport {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
  scrollbar-gutter: stable;
}
.frame__viewport::-webkit-scrollbar { width: 4px; }
.frame__viewport::-webkit-scrollbar-track { background: transparent; }
.frame__viewport::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.frame__viewport:hover::-webkit-scrollbar-thumb,
.frame__viewport:focus-within::-webkit-scrollbar-thumb,
.frame__viewport:active::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.08);
}
.frame__viewport:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.55);
}
.frame__viewport { scroll-behavior: smooth; }

@media (max-width: 880px) {
  .frame__viewport { aspect-ratio: 16 / 9; }
  .frame__url { font-size: 9.5px; padding: 4px 8px; }
  .frame__chrome { padding: 6px 10px; gap: 6px; }
  .frame__dots i { width: 9px; height: 9px; }
}
@media (max-width: 480px) {
  .frame__url { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .frame__viewport { scroll-behavior: auto; }
}
.card__media--ext {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #f6f4ee;
}
.card__media--ext::after {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .25) 100%);
}
.card__brand {
  font-family: "JetBrains Mono", monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #f6f4ee;
}

.card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: var(--ink);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .3s var(--ease, cubic-bezier(.2,.7,.2,1)),
              transform .3s var(--ease, cubic-bezier(.2,.7,.2,1));
}
.card:hover .card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.card__media--ext .card__arrow {
  background: #f6f4ee;
  color: #0a0a0a;
}

.card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.card__nameRow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.card__srg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform .3s var(--ease, cubic-bezier(.2,.7,.2,1));
}
.card:hover .card__srg { transform: scale(1.06) rotate(-2deg); }
.card__n {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  flex-shrink: 0;
}
.proj--external .card__n::after {
  content: 'EXT';
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  vertical-align: 1px;
}
.proj--srg .card__n { color: #c44032; }
.proj--product .card__n { color: var(--ink); }
.card__badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--ink);
  background: var(--gold, #c19a4f);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.card__name {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.card__hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.projects__note {
  margin: 36px 0 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-align: center;
  text-transform: uppercase;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 24px;
}

/* ================================================
   03 / PROCESS
================================================ */
.proc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
@media (max-width: 880px) { .proc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .proc { grid-template-columns: 1fr; } }
.proc__step {
  padding: 32px 28px 28px;
  border-right: 1px solid var(--ink);
  background: var(--bg);
}
.proc__step:last-child { border-right: 0; }
@media (max-width: 880px) {
  .proc__step:nth-child(2) { border-right: 0; }
  .proc__step:nth-child(1), .proc__step:nth-child(2) { border-bottom: 1px solid var(--ink); }
}
@media (max-width: 480px) {
  .proc__step { border-right: 0; border-bottom: 1px solid var(--ink); }
  .proc__step:last-child { border-bottom: 0; }
}
.proc__n {
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.proc__step h4 {
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -.01em;
}
.proc__step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
}

/* ================================================
   04 / CONTACT — only one option (TikTok DM)
================================================ */
.contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__big {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 36px 32px;
  background: var(--ink);
  color: var(--bg);
  transition: background .22s, color .22s;
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}
.contact__big:hover {
  background: var(--bg);
  color: var(--ink);
}
.contact__num {
  font-size: 13px;
  letter-spacing: .2em;
  color: rgba(246, 244, 238, .55);
  transition: color .22s;
}
.contact__big:hover .contact__num { color: var(--ink-faint); }
.contact__lbl {
  font-size: clamp(28px, 3.8vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.015em;
}
.contact__hint {
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(246, 244, 238, .7);
  transition: color .22s;
}
.contact__big:hover .contact__hint { color: var(--ink-dim); }
.contact__arrow {
  font-size: 26px;
  transition: transform .22s;
}
.contact__big:hover .contact__arrow { transform: translate(4px, -4px); }

.contact__note {
  margin: 22px 0 0;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}
.contact__big--product {
  background: var(--bg-pure);
  color: var(--ink);
  border-color: var(--line);
  border-style: solid;
  border-width: 1px;
  padding-left: 40px;
  position: relative;
  overflow: hidden;
}
.contact__big--product::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, #2342E8);
}
.contact__big--product .contact__num { color: var(--ink-faint); }
.contact__big--product .contact__lbl { color: var(--ink); }
.contact__big--product .contact__hint { color: var(--ink-dim); }
.contact__big--product:hover {
  background: var(--bg);
  border-color: var(--ink);
}
@media (max-width: 720px) {
  .contact__big {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 26px 22px;
  }
}

/* ================================================
   FOOTER
================================================ */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.foot span:first-child { color: var(--ink); }

.foot .foot__studio {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.foot .foot__studio:hover { border-bottom-color: var(--ink); }
