:root {
  --paper: #0b0d0c;
  --surface: #151816;
  --surface-2: #1d211f;
  --raised: #f6f3ed;
  --ink: #f6f3ed;
  --dark-ink: #171917;
  --muted: #b8b0a4;
  --faint: #827a70;
  --line: #2b302d;
  --line-strong: #454d48;
  --clay: #e05d3f;
  --clay-dark: #b6452d;
  --green: #8ea08b;
  --gold: #c8a96a;
  --shadow: 0 28px 90px rgb(0 0 0 / 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: keep-all;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.oi-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  background: rgb(11 13 12 / .78);
  backdrop-filter: blur(14px);
}

.oi-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}
.oi-logo b { color: var(--clay); }

.oi-nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; font-weight: 700; }
.oi-nav a:hover { color: var(--ink); }

.oi-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 72px) 88px;
}

.oi-eyebrow {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(43px, 7vw, 82px);
  line-height: 1.14;
  letter-spacing: 0;
}
h1 em { color: var(--clay); font-style: normal; }
h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.22;
}
h3 { font-size: 20px; }

.oi-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.oi-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.oi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.oi-button:hover { transform: translateY(-1px); }
.oi-button-primary { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.oi-button-primary:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.oi-button-ghost { background: rgb(255 255 255 / .04); color: var(--ink); border-color: rgb(255 255 255 / .16); }
.oi-wide { width: 100%; }

.oi-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 650px;
  margin: 44px 0 0;
  border: 1px solid rgb(255 255 255 / .1);
  background: rgb(255 255 255 / .08);
}
.oi-stats div { padding: 18px; background: rgb(255 255 255 / .045); }
.oi-stats dt { color: var(--faint); font-size: 11px; font-weight: 800; }
.oi-stats dd { margin: 7px 0 0; font-weight: 900; }

.oi-hero-media { min-width: 0; }
.oi-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 18px;
  background: #141715;
  box-shadow: var(--shadow);
}
.oi-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 10% 10%, rgb(224 93 63 / .28), transparent 30%),
    linear-gradient(90deg, rgb(0 0 0 / .62), transparent 46%);
  pointer-events: none;
}
.oi-hero-card img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}
.oi-hero-card-caption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
  max-width: 330px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 10px;
  background: rgb(12 14 13 / .76);
  backdrop-filter: blur(16px);
}
.oi-hero-card-caption span {
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.oi-hero-card-caption strong {
  color: #fff;
  font-size: 14px;
}
.oi-compare {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: none;
}
.oi-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oi-compare-after {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
}
.oi-compare-after img { width: calc(100% / var(--ratio, .52)); max-width: none; }
.oi-tag {
  position: absolute;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--surface);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.oi-before { right: 16px; background: rgb(33 27 20 / .74); }
.oi-after { left: 16px; background: var(--clay); }
.oi-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: ew-resize;
}
.oi-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgb(0 0 0 / .2);
}

.oi-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgb(255 255 255 / .08);
}
.oi-section-head { max-width: 760px; margin-bottom: 34px; }
.oi-section-head p:not(.oi-eyebrow) { color: var(--muted); line-height: 1.8; }

.oi-studio {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 24px;
  align-items: start;
}
.oi-panel {
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 70px rgb(0 0 0 / .22);
}
.oi-control-panel { padding: clamp(20px, 3vw, 32px); }
.oi-result-panel { min-height: 620px; overflow: hidden; }

.oi-field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.oi-field label { font-size: 13px; font-weight: 900; }
.oi-field input, .oi-field select, .oi-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #101311;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}
.oi-field input:focus, .oi-field select:focus, .oi-field textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgb(173 86 48 / .12);
}
.oi-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.oi-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 2px dashed var(--line-strong);
  border-radius: 8px;
  background: #101311;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}
.oi-dropzone strong { display: block; margin-bottom: 8px; }
.oi-dropzone span, .oi-small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.oi-dropzone img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.oi-result-empty, .oi-loading {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 620px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.oi-result-empty span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
}
.oi-result img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.oi-result-meta { padding: 24px; }
.oi-result-meta ul { margin: 0 0 22px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.oi-error {
  margin: 20px;
  padding: 14px 16px;
  border: 1px solid rgb(173 86 48 / .25);
  border-radius: 6px;
  background: #fbebe3;
  color: var(--clay-dark);
  font-size: 13px;
  line-height: 1.6;
}
.oi-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 3px solid var(--line);
  border-top-color: var(--clay);
  border-radius: 999px;
  animation: oi-spin .8s linear infinite;
}
@keyframes oi-spin { to { transform: rotate(360deg); } }

.oi-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.oi-steps article {
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 10px;
  background: var(--surface);
}
.oi-steps b { color: var(--clay); font-family: Georgia, serif; }
.oi-steps p { color: var(--muted); line-height: 1.7; }

.oi-consult { padding-bottom: 110px; }
.oi-lead-form { max-width: 820px; padding: clamp(20px, 3vw, 32px); }
.oi-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgb(255 255 255 / .08);
  color: var(--muted);
  font-size: 13px;
}
.oi-footer strong { color: var(--ink); }

.oi-gallery-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(340px, 1.22fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px clamp(20px, 5vw, 72px) 96px;
}
.oi-gallery-copy {
  position: relative;
  z-index: 2;
}
.oi-gallery-copy p:not(.oi-eyebrow) {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}
.oi-mosaic-frame {
  position: relative;
  max-height: 760px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 16px;
  background: #080908;
  box-shadow: var(--shadow);
}
.oi-mosaic-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.oi-mosaic-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .oi-hero, .oi-studio, .oi-gallery-strip { grid-template-columns: 1fr; }
  .oi-hero { padding-top: 48px; }
  .oi-hero-media { order: -1; }
  .oi-hero-card img { min-height: 340px; }
  .oi-compare { aspect-ratio: 4 / 3; }
  .oi-mosaic-frame { max-height: 620px; }
  .oi-stats, .oi-steps { grid-template-columns: 1fr; }
  .oi-grid-two { grid-template-columns: 1fr; gap: 0; }
  .oi-nav a:not(:last-child) { display: none; }
  .oi-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .oi-header { padding: 14px 18px; }
  .oi-logo { font-size: 18px; }
  h1 { font-size: 39px; }
  .oi-actions .oi-button { width: 100%; }
  .oi-hero-card-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .oi-gallery-strip { padding-top: 14px; }
}
