:root {
  --bg: #f4efe7;
  --bg-2: #eee7dc;
  --surface: #f7f3ec;
  --surface-2: #f3ebdf;
  --line: #d9c9b5;
  --line-strong: #c9b396;

  --text: #3b342d;
  --text-soft: #746a5f;
  --text-muted: #95897c;

  --accent: #df9546;
  --accent-dark: #a56a2e;
  --accent-soft: #f1dfcb;

  --shadow-sm: 0 8px 20px rgba(87, 62, 32, 0.06);
  --shadow-md: 0 16px 36px rgba(87, 62, 32, 0.1);
  --shadow-lg: 0 24px 56px rgba(87, 62, 32, 0.12);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;

  --container: 1380px;
  --header-h: 74px;

  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f4ee 0%, #f2ebe2 100%);
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.3s ease,
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, #e6a353 0%, #d98c3b 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 140, 59, 0.24);
}

.btn--ghost {
  background: rgba(248, 244, 238, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 251, 246, 1);
}

.btn--scene {
  min-width: 320px;
  min-height: 86px;
  padding: 0 40px;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  background: #0f73ab;
  color: #fff;
  box-shadow: 0 16px 34px rgba(15, 115, 171, 0.24);
}

.btn--scene:hover {
  box-shadow: 0 20px 40px rgba(15, 115, 171, 0.32);
}

.btn--full {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 244, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 201, 181, 0.7);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbf8f2 0%, #efe6d9 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-track {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 7px;
  border-radius: 999px;
}

.brand-track--1 {
  top: 18px;
  background: #d98d3d;
}

.brand-track--2 {
  top: 32px;
  background: #8ea4cf;
}

.brand-track--3 {
  top: 46px;
  background: #95b28f;
}

.brand-jp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  font-weight: 700;
  color: var(--text-soft);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(248, 244, 238, 0.96);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
  border-top: 1px solid transparent;
}

.mobile-menu.is-open {
  max-height: 260px;
  border-top-color: rgba(217, 201, 181, 0.7);
}

.mobile-menu__inner {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  display: grid;
  gap: 8px;
  padding: 16px 0 18px;
}

.mobile-menu__inner a {
  padding: 12px 0;
  color: var(--text-soft);
  font-weight: 700;
}

/* Office stage */
.office-stage {
  padding: 0 0 20px;
}

.office-scene {
  position: relative;
  padding: 4px 24px 40px;
  border-radius: 42px;
  border: 1px solid rgba(217, 201, 181, 0.88);
  background: linear-gradient(180deg, #f4efe7 0%, #eee7dc 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.office-scene__room {
  display: none;
}

.office-scene__floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -16%;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 186, 163, 0.28) 0%, rgba(201, 186, 163, 0.14) 52%, transparent 72%);
  pointer-events: none;
}

/* Desktop office */
.desktop-office {
  position: relative;
  height: 380px;
  z-index: 2;
}

.desk {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
  transform-origin: center bottom;
}

.desk:not(.active):hover {
  transform: translateY(-6px);
}

.desk__asset {
  display: block;
  width: clamp(220px, 19vw, 300px);
  filter: drop-shadow(0 14px 24px rgba(95, 69, 39, 0.08));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.desk__asset img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
  pointer-events: none;
}

/* Labels removed */
.desk__label {
  display: none;
}

/* Positioning for circle effect */
.desk--websites {
  left: 4%;
  bottom: 88px;
}

.desk--travel {
  left: 26%;
  bottom: 118px;
}

.desk--consulting {
  right: 26%;
  bottom: 118px;
}

.desk--project {
  right: 4%;
  bottom: 88px;
}

/* Rotation only on assets */
.desk--websites .desk__asset {
  transform: rotate(-7deg);
}

.desk--travel .desk__asset {
  transform: rotate(-3deg);
}

.desk--consulting .desk__asset {
  transform: rotate(3deg);
}

.desk--project .desk__asset {
  transform: rotate(7deg);
}

/* Active lift */
.desk.active {
  transform: translateY(-18px);
}

/* Mobile office */
.mobile-office {
  display: none;
  position: relative;
  z-index: 2;
  padding: 8px 0 10px;
}

.mobile-office__stage {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  align-items: center;
}

.mobile-office__arrow {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(248, 244, 238, 0.96);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.mobile-desk {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
  padding: 8px 0;
  transform: none !important;
}

.mobile-desk__asset {
  width: min(100%, 360px);
  filter: drop-shadow(0 12px 20px rgba(95, 69, 39, 0.08));
}

.mobile-desk__asset img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: none !important;
  user-select: none;
  pointer-events: none;
}

.mobile-office__meta {
  margin-top: 10px;
  text-align: center;
}

.mobile-office__eyebrow {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.mobile-office__meta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: -0.05em;
}

.mobile-office__actions {
  margin-top: 18px;
}

/* Info panel hidden by default */
.desk-info-panel {
  position: relative;
  z-index: 2;
  margin-top: 12px;
}

.desk-info {
  display: none;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 26px 28px;
  border-radius: 30px;
  background: rgba(248, 244, 238, 0.92);
  border: 1px solid rgba(217, 201, 181, 0.88);
  box-shadow: var(--shadow-sm);
}

.desk-info.visible {
  display: block;
}

.desk-info h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  letter-spacing: -0.05em;
}

.desk-info p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1.03rem;
}

/* CTA */
.office-cta {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Contact section */
.contact-section {
  padding: 6px 0 42px;
}

.contact-section.is-hidden {
  display: none;
}

.contact-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(217, 201, 181, 0.88);
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.96) 0%, rgba(239, 231, 220, 0.96) 100%);
  box-shadow: var(--shadow-lg);
}

.contact-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.contact-card__eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.contact-card__head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
}

.contact-card__intro {
  margin: 0;
  max-width: 640px;
  color: var(--text-soft);
  line-height: 1.65;
}

.contact-card__close {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(248, 244, 238, 0.96);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    border-color var(--transition),
    background var(--transition);
}

.contact-card__close:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 251, 246, 1);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(201, 179, 150, 0.9);
  background: rgba(255, 252, 248, 0.98);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-field textarea {
  resize: vertical;
  min-height: 170px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(223, 149, 70, 0.12);
  background: #fff;
}

.contact-form__actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.contact-submit {
  min-width: 240px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(217, 201, 181, 0.78);
  background: rgba(244, 239, 231, 0.86);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  display: grid;
  gap: 2px;
}

.footer-brand__title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-brand__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

/* Overlay */
.services-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.services-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.services-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 33, 18, 0.32);
  backdrop-filter: blur(4px);
}

.services-overlay__panel {
  position: relative;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #fbf8f2 0%, #efe7dc 100%);
  border-top: 1px solid rgba(217, 201, 181, 0.92);
  box-shadow: 0 -20px 40px rgba(56, 39, 18, 0.14);
  padding: 20px 16px 22px;
  transform: translateY(18px);
  transition: transform 180ms ease;
  max-height: min(76vh, 720px);
  overflow: auto;
}

.services-overlay.is-open .services-overlay__panel {
  transform: translateY(0);
}

.services-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.services-overlay__head h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.services-overlay__close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbf8f2;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.services-overlay__list {
  display: grid;
  gap: 12px;
}

.service-sheet {
  width: 100%;
  text-align: left;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(217, 201, 181, 0.9);
  background: rgba(248, 244, 238, 0.92);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.service-sheet:hover {
  transform: translateY(-1px);
}

.service-sheet.is-highlighted {
  background: var(--accent-soft);
  border-color: #dfb07c;
}

.service-sheet__title {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.service-sheet__text {
  display: block;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1280px) {
  .desk__asset {
    width: clamp(210px, 18vw, 270px);
  }

  .desk--websites {
    left: 2%;
  }

  .desk--travel {
    left: 24%;
  }

  .desk--consulting {
    right: 24%;
  }

  .desk--project {
    right: 2%;
  }
}

@media (max-width: 1040px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .desktop-office,
  .desk-info-panel {
    display: none;
  }

  .mobile-office {
    display: block;
  }

  .office-scene {
    min-height: 560px;
  }

  .office-cta {
    margin-top: 18px;
  }

  .contact-section {
    padding-top: 0;
  }

  .contact-card {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form__actions {
    justify-content: stretch;
  }

  .contact-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 80px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .brand-track {
    left: 13px;
    right: 13px;
    height: 6px;
  }

  .brand-track--1 {
    top: 15px;
  }

  .brand-track--2 {
    top: 27px;
  }

  .brand-track--3 {
    top: 39px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-request {
    min-height: 44px;
    padding: 0 14px;
  }

  .office-stage {
    padding-top: 4px;
  }

  .office-scene {
    min-height: 520px;
    padding: 6px 14px 24px;
    border-radius: 30px;
  }

  .mobile-desk {
    min-height: 300px;
  }

  .mobile-desk__asset {
    width: min(100%, 310px);
  }

  .btn--scene {
    min-width: 240px;
    min-height: 72px;
    font-size: 1.35rem;
  }

  .contact-card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .contact-card__head {
    gap: 14px;
    margin-bottom: 22px;
  }

  .contact-card__head h2 {
    font-size: 1.8rem;
  }

  .contact-card__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.6rem;
  }

  .form-field input,
  .form-field textarea,
  .form-field select {
    border-radius: 16px;
    padding: 13px 14px;
  }

  .footer-inner {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 14px;
  }

  .services-overlay__panel {
    padding: 18px 14px 20px;
  }
  /* Legal pages */
.legal-page {
  padding: 28px 0 48px;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(217, 201, 181, 0.88);
  background: linear-gradient(180deg, rgba(251, 248, 242, 0.96) 0%, rgba(239, 231, 220, 0.96) 100%);
  box-shadow: var(--shadow-lg);
}

.legal-eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.05em;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.legal-card p {
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.72;
}

.legal-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  margin-top: 28px;
}

@media (max-width: 1040px) {
  .legal-card {
    padding: 28px 22px;
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  .legal-page {
    padding: 16px 0 36px;
  }

  .legal-card {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .legal-card h1 {
    font-size: 1.9rem;
  }

  .legal-card h2 {
    font-size: 1.1rem;
  }
}
