:root {
  --bg: #f4f4f2;
  --bg-card: #ffffff;
  --ink: #111111;
  --ink-soft: #55534e;
  --accent: #d2691e;
  --accent-ink: #ffffff;
  --line: #e2e0da;
  --dark: #161512;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --wrap: 1180px;
  --shadow: 0 20px 45px -25px rgba(20, 18, 14, 0.35);
  --focus: 3px solid #1a56ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.15rem; }

p { margin: 0; color: var(--ink-soft); }

.section-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--accent);
  font-weight: 800;
}

.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-list a { color: var(--ink-soft); transition: color 0.15s ease; }
.nav-list a:hover { color: var(--ink); }

.header-time {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink);
}

/* Buttons & pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-filled {
  background: var(--ink);
  color: #fff;
}
.btn-filled:hover { background: #000; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-block { width: 100%; padding: 15px; margin-top: 6px; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.pill {
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.pill:hover { transform: translateY(-2px); }

.pill-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.pill-black { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 56px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 500;
}

.stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #a8a6a0;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.portrait-block {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portrait-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 70% 100%, rgba(210, 105, 30, 0.35), transparent 70%);
}

.glass-card {
  position: absolute;
  left: -18px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.9rem;
}

.glass-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Statement */
.statement {
  padding: 70px 0 20px;
}
.statement p {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  max-width: 920px;
}
.accent { color: var(--accent); }

/* Services */
.services { padding: 90px 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-index {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.service-card h3 { margin-bottom: 10px; }

/* Portfolio */
.portfolio { padding: 30px 0 100px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.feature-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin: 40px 0 28px;
  box-shadow: var(--shadow);
}

.feature-project-visual {
  height: 280px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
}

.feature-project-body .tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #d8d6d0; }
.feature-project-body h3 { color: #fff; margin-bottom: 12px; font-size: 1.5rem; }
.feature-project-body p { color: #b9b7b0; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.case-visual {
  height: 150px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
}

.case-card h3 { margin-bottom: 8px; }
.case-card p { font-size: 0.92rem; }

/* About */
.about { padding: 90px 0; background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-grid p { margin-top: 18px; }

.about-team-photo {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin: 0;
}

.stat dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}
.stat dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

/* Partners */
.partners { padding: 90px 0; }
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-grid .wordmark { font-size: 1.05rem; }

/* Careers */
.careers { padding: 90px 0; background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.careers-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.careers-inner > div > p { margin-top: 16px; }
.careers-pills { margin-top: 0; }

/* Contact */
.contact { padding: 90px 0 110px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info p { margin-top: 16px; max-width: 460px; }

.contact-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.inquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.inquiry-form h3 { margin-bottom: 24px; }

.field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: var(--focus);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c0392b;
}
.field-error {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1em;
}

.form-success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f4ede2;
  border: 1px solid var(--accent);
  color: #7a3a10;
  font-weight: 500;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-inner p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; }
  .portrait-block { height: 320px; }
  .service-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-project { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .careers-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .main-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    z-index: 90;
  }
  .main-nav.open { display: block; }
  .nav-list {
    flex-direction: column;
    gap: 4px;
  }
  .nav-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .nav-list a:hover { background: var(--bg); }
  .nav-toggle { display: flex; }
  .header-time { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .partner-row { gap: 18px; }
  .inquiry-form { padding: 26px; }
  .feature-project { padding: 26px; }
}
