:root {
  --bg: #f6f2e9;
  --ink: #171814;
  --muted: #6f705f;
  --line: rgba(23, 24, 20, 0.14);
  --panel: rgba(255, 253, 246, 0.78);
  --accent: #ff5c39;
  --accent-2: #0e8f82;
  --accent-3: #255bd8;
  --shadow: 0 26px 70px rgba(35, 34, 26, 0.16);
  --radius: 8px;
  --mood: 48;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(23, 24, 20, 0.035) 1px, transparent 1px) 0 0 / 68px 68px,
    linear-gradient(rgba(23, 24, 20, 0.035) 1px, transparent 1px) 0 0 / 68px 68px,
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: var(--accent);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.82;
}

.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor {
  width: 42px;
  height: 42px;
  border: 1px solid white;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: white;
}

.cursor.is-active {
  width: 70px;
  height: 70px;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 12;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(23, 24, 20, 0.12);
  background: rgba(246, 242, 233, 0.72);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  transform: translateX(-50%);
}

.site-header[data-reveal] {
  transform: translate(-50%, 28px);
}

.site-header[data-reveal].is-visible {
  transform: translate(-50%, 0);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(135deg, var(--accent), var(--accent-3));
  color: var(--bg);
  border-radius: 6px;
  font-size: 1.18rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 20px rgba(23, 24, 20, 0.14);
}

.brand-name {
  letter-spacing: 0;
}

.nav-links {
  gap: 2px;
}

.nav-links a,
.lang-toggle {
  min-height: 38px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(23, 24, 20, 0.74);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.lang-toggle:hover,
.lang-toggle:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(23, 24, 20, 0.08);
  color: var(--ink);
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 94px;
  margin-left: 12px;
  box-shadow: -12px 0 0 -11px rgba(23, 24, 20, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  overflow: hidden;
  border: 1px solid rgba(14, 143, 130, 0.28);
  background:
    linear-gradient(135deg, rgba(14, 143, 130, 0.1), rgba(255, 92, 57, 0.08)),
    rgba(255, 253, 246, 0.72);
  color: var(--ink);
}

.lang-toggle::after {
  position: absolute;
  inset: 5px;
  z-index: -1;
  content: "";
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.44);
  transform: translateX(-38%);
  transition: transform 180ms ease;
}

.lang-toggle:hover::after,
.lang-toggle:focus-visible::after {
  transform: translateX(0);
}

.lang-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.78rem;
}

.lang-label {
  position: relative;
  z-index: 1;
  font-weight: 900;
}


.nav-links .nav-cta {
  background: var(--ink);
  color: var(--bg);
}

.nav-links .nav-cta[aria-current="page"] {
  color: var(--bg);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(36px, 6vw, 92px);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  padding: 130px 0 72px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.25rem, 8.4vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.profession-title {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(2.55rem, 4.8vw, 5.05rem);
  line-height: 0.98;
}

html[lang="ja"] .profession-title {
  max-width: 760px;
  font-size: clamp(2.18rem, 3.95vw, 4.2rem);
}

.profession-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.16em;
  color: var(--ink);
  margin-bottom: 0.08em;
}

.profession-line span {
  display: inline-block;
  vertical-align: middle;
}

.title-symbol {
  display: inline-grid;
  flex: 0 0 1.3em;
  min-width: 1.3em;
  place-items: center;
  color: var(--accent-2);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  line-height: 1;
}

.title-chip {
  position: relative;
  margin-left: 0.04em;
  padding: 0.02em 0.12em 0.08em;
}

.title-phrase {
  white-space: nowrap;
}

.title-chip::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(14, 143, 130, 0.72);
  box-shadow:
    -4px -4px 0 -3px var(--accent-2),
    4px -4px 0 -3px var(--accent-2),
    4px 4px 0 -3px var(--accent-2),
    -4px 4px 0 -3px var(--accent-2);
  pointer-events: none;
}

.title-punct {
  margin-left: -0.08em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1;
}

h3 {
  font-size: 1.45rem;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.ghost {
  background: rgba(255, 253, 246, 0.44);
}

.button-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 5px;
}

.hero-stage {
  display: grid;
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.portrait-card,
.project-card,
.contact-panel {
  border: 1px solid rgba(23, 24, 20, 0.12);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.portrait-card {
  position: relative;
  min-height: 430px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}

.portrait-card::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(23, 24, 20, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.portrait-visual {
  position: relative;
  display: grid;
  height: 330px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 92, 57, 0.34), transparent 25%),
    radial-gradient(circle at 72% 70%, rgba(37, 91, 216, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(14, 143, 130, 0.16), rgba(255, 253, 246, 0.32));
  border-radius: 6px;
}

.portrait-core {
  display: grid;
  width: min(72%, 320px);
  aspect-ratio: 1;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2) 46%, transparent 47%),
    linear-gradient(135deg, rgba(255, 92, 57, 0.78), rgba(37, 91, 216, 0.78));
  color: white;
  border-radius: 48% 52% 44% 56%;
  animation: morph 8s ease-in-out infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 28px 60px rgba(23, 24, 20, 0.24);
}

.avatar-face {
  align-self: end;
  font-size: clamp(4.8rem, 10vw, 8.4rem);
  filter: drop-shadow(0 18px 24px rgba(23, 24, 20, 0.18));
  transform: translateY(10px);
}

.portrait-core span {
  align-self: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 800;
}

.portrait-core strong {
  align-self: start;
  font-size: clamp(1.65rem, 4vw, 3.2rem);
  line-height: 1;
}

.portrait-orbit {
  position: absolute;
  border: 1px solid rgba(23, 24, 20, 0.2);
  border-radius: 999px;
  animation: rotate 12s linear infinite;
}

.orbit-one {
  width: 72%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 48%;
  aspect-ratio: 1;
  animation-direction: reverse;
  transform: rotate(40deg);
}

.portrait-meta,
.metric-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portrait-meta {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.portrait-meta strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.metric-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-panel div {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(23, 24, 20, 0.12);
  background: rgba(255, 253, 246, 0.66);
  border-radius: var(--radius);
}

.metric-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
  line-height: 1;
}

.metric-panel span {
  color: var(--muted);
  font-weight: 700;
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding: 20px 28px;
  font-size: clamp(1.4rem, 2.5vw, 2.6rem);
  font-weight: 900;
  white-space: nowrap;
}

.intro,
.home-links,
.work,
.process,
.playground,
.contact,
.page-hero,
.project-grid,
.blog-list,
.contact-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 132px) 0;
}

.page-hero {
  min-height: 62vh;
  display: grid;
  align-content: end;
  padding-top: 150px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.contact-panel h1 {
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 13vw, 11rem);
  line-height: 0.86;
}

.page-hero p:not(.eyebrow),
.contact-panel p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.86;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.route-card,
.mini-project,
.blog-card,
.contact-methods article {
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.58);
  border-radius: var(--radius);
}

.route-card {
  min-height: 250px;
  padding: 22px;
  transition: transform 180ms ease, background 180ms ease;
}

.route-card:hover {
  background: rgba(255, 253, 246, 0.86);
}

.route-card span,
.mini-project span,
.blog-card time,
.blog-card span,
.contact-methods span {
  display: block;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card strong {
  display: block;
  margin: 80px 0 14px;
  font-size: 2rem;
}

.route-card p,
.mini-project p,
.blog-card p {
  color: var(--muted);
  line-height: 1.72;
}

.section-kicker {
  position: sticky;
  top: 110px;
  align-self: start;
}

.section-kicker span {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-weight: 900;
}

.section-kicker p {
  max-width: 280px;
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.intro-body {
  font-size: clamp(1.35rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.36;
}

.intro-body p {
  margin-bottom: 28px;
}

.intro-body p:last-child {
  color: rgba(23, 24, 20, 0.54);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.work-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.work-tabs {
  display: grid;
  gap: 10px;
  align-self: start;
}

.work-tab {
  min-height: 64px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.48);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  padding: 0 18px;
}

.work-tab.active {
  background: var(--ink);
  color: var(--bg);
}

.project-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 460px;
  overflow: hidden;
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: center;
  overflow: hidden;
}

.project-visual-one {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 92, 57, 0.86), transparent 22%),
    radial-gradient(circle at 78% 70%, rgba(14, 143, 130, 0.82), transparent 24%),
    #f3d34a;
}

.project-visual-two {
  background:
    radial-gradient(circle at 70% 24%, rgba(37, 91, 216, 0.72), transparent 28%),
    radial-gradient(circle at 18% 76%, rgba(255, 92, 57, 0.72), transparent 24%),
    #e8f0eb;
}

.project-visual-three {
  background:
    linear-gradient(135deg, rgba(23, 24, 20, 0.92), rgba(23, 24, 20, 0.58)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.1) 22px 23px),
    #255bd8;
}

.project-visual span {
  position: absolute;
  display: block;
  border: 1px solid rgba(23, 24, 20, 0.28);
  background: rgba(255, 253, 246, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  animation: float 6s ease-in-out infinite;
}

.project-visual span:nth-child(1) {
  width: 46%;
  height: 26%;
  top: 18%;
  left: 16%;
}

.project-visual span:nth-child(2) {
  width: 52%;
  height: 18%;
  right: 12%;
  bottom: 26%;
  animation-delay: -1.4s;
}

.project-visual span:nth-child(3) {
  width: 18%;
  aspect-ratio: 1;
  right: 22%;
  top: 24%;
  animation-delay: -2.2s;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(26px, 4vw, 46px);
}

.project-type {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-content p:not(.project-type) {
  color: var(--muted);
  line-height: 1.78;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.project-tags li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 0;
}

.mini-project {
  display: grid;
  min-height: 280px;
  padding: 24px;
  transition: background 180ms ease, transform 180ms ease;
}

.mini-project:hover {
  background: rgba(255, 253, 246, 0.86);
}

.mini-project h3 {
  margin: 24px 0 14px;
}

.preview-visual {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  margin: -4px -4px 22px;
  border-radius: 6px;
}

.preview-visual span {
  position: absolute;
  display: block;
  border: 1px solid rgba(23, 24, 20, 0.22);
  background: rgba(255, 253, 246, 0.42);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.preview-visual span:nth-child(1) {
  width: 52%;
  height: 24%;
  top: 22%;
  left: 14%;
}

.preview-visual span:nth-child(2) {
  width: 48%;
  height: 18%;
  right: 12%;
  bottom: 22%;
}

.preview-visual span:nth-child(3) {
  width: 16%;
  aspect-ratio: 1;
  right: 20%;
  top: 26%;
}

.preview-visual strong {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(23, 24, 20, 0.22);
}

.blog-list {
  display: grid;
  gap: 14px;
}

.blog-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 4vw, 36px);
  transition: background 180ms ease, transform 180ms ease;
}

.detail-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 96px;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--muted);
  font-weight: 900;
}

.detail-page h1 {
  max-width: 920px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.95;
}

[data-detail="post"] h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5.6vw, 5rem);
  line-height: 1.06;
}

.detail-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.9vw, 1.36rem);
  line-height: 1.86;
}

.video-frame {
  position: relative;
  overflow: hidden;
  margin: 44px 0;
  border: 1px solid var(--line);
  background: rgba(23, 24, 20, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.video-placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.detail-body {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 34px 0;
  color: rgba(23, 24, 20, 0.78);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.92;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px dashed rgba(23, 24, 20, 0.22);
  background: rgba(255, 253, 246, 0.58);
  border-radius: var(--radius);
}

.empty-state strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.empty-state p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.78;
}

.blog-card:hover {
  background: rgba(255, 253, 246, 0.86);
}

.blog-card h2 {
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.blog-card span {
  justify-self: end;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding-top: 150px;
}

.not-found {
  display: grid;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  align-content: center;
  margin: 0 auto;
  padding: 150px 0 80px;
}

.not-found h1 {
  max-width: none;
  margin-bottom: 20px;
  color: transparent;
  font-size: clamp(8rem, 26vw, 22rem);
  line-height: 0.78;
  -webkit-text-stroke: 2px var(--ink);
}

.not-found p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.86;
}

.contact-page .contact-panel {
  min-height: 560px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.contact-methods article {
  display: grid;
  align-content: end;
  min-height: 170px;
  padding: 20px;
}

.contact-methods strong {
  margin-top: 12px;
  font-size: 1.1rem;
  word-break: break-word;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-steps article {
  min-height: 290px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.54);
  border-radius: var(--radius);
  transition: transform 180ms ease, background 180ms ease;
}

.process-steps article:hover {
  background: rgba(255, 253, 246, 0.82);
  transform: translateY(-6px);
}

.process-steps span {
  display: block;
  margin-bottom: 62px;
  color: var(--accent);
  font-weight: 900;
}

.process-steps p {
  color: var(--muted);
  line-height: 1.72;
}

.playground {
  display: flex;
  min-height: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-block: 1px solid var(--line);
}

.mood-control {
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) auto;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.mood-control input {
  width: 100%;
  accent-color: var(--accent);
}

.contact {
  padding-bottom: 32px;
}

.contact-panel {
  display: grid;
  min-height: 430px;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 7vw, 76px);
  background:
    radial-gradient(circle at calc(var(--mood) * 1%) 20%, rgba(255, 92, 57, 0.32), transparent 24%),
    radial-gradient(circle at 85% 78%, rgba(37, 91, 216, 0.24), transparent 28%),
    rgba(255, 253, 246, 0.75);
}

.contact h2 {
  max-width: 820px;
  margin-bottom: 30px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header[data-reveal].is-visible {
  transform: translate(-50%, 0);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 48% 52% 44% 56%;
  }
  50% {
    border-radius: 58% 42% 54% 46%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@media (max-width: 900px) {
  .cursor,
  .cursor-dot {
    display: none;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand-name {
    display: none;
  }

  .nav-links a {
    padding-inline: 9px;
    font-size: 0.84rem;
  }

  .section-grid,
  .work-layout,
  .project-card,
  .hero-copy,
  .hero-stage,
  .home-links,
  .project-grid,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 5.7rem);
  }

  .portrait-card {
    min-height: 460px;
  }

  .portrait-visual,
  .project-visual {
    min-height: 350px;
    height: 350px;
  }

  .metric-panel,
  .section-heading,
  .playground {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-panel div {
    min-height: 96px;
    padding: 14px;
  }

  .metric-panel strong {
    font-size: 1.6rem;
  }

  .section-kicker {
    position: static;
  }

  .intro-body {
    font-size: clamp(1.45rem, 7vw, 2.4rem);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card span {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 54px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-header {
    overflow: hidden;
  }

  .nav-links {
    max-width: calc(100vw - 78px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .lang-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: space-between;
  }

  .metric-panel,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .work-tab {
    min-height: 56px;
  }

  .project-content {
    padding: 24px;
  }

  .mood-control {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-panel {
    min-height: 360px;
  }

  .page-hero {
    min-height: 54vh;
  }

  .page-hero h1,
  .contact-panel h1 {
    font-size: clamp(3.6rem, 21vw, 6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
