/* ══════════ SELF-HOSTED FONTS (variable) ══════════ */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 600; font-stretch: 100%;
  font-display: optional;
  src: url(assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 600; font-stretch: 100%;
  font-display: optional;
  src: url(assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300 400;
  font-display: optional;
  src: url(assets/fonts/fraunces-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300 400;
  font-display: optional;
  src: url(assets/fonts/fraunces-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300 600;
  font-display: optional;
  src: url(assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300 600;
  font-display: optional;
  src: url(assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════
   KARARTI — catalog-first editorial lookbook
   travertine paper · espresso ink · terracotta
   ═══════════════════════════════════════════════ */
:root {
  --paper:   #f4efe7;
  --paper-2: #ece5d8;
  --card:    #faf7f1;
  --ink:     #221b14;
  --ink-2:   #5c5347;
  --line:    #d8cfbf;
  --terra:   #a0522d;
  --terra-2: #8a4322;
  --espresso: #1b1612;
  --content-max: 1440px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --content-width: min(var(--content-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
  --ease: cubic-bezier(.32,.72,0,1);
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Archivo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 148px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--terra); color: var(--paper); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-size: 13px;
  transition: none;
}
.skip-link:focus-visible { top: 14px; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: none;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-3%,4%); }
  80% { transform: translate(4%,2%); }
}

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: max(18px, calc(env(safe-area-inset-top) + 8px)); left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 28px;
  padding: 12px 22px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: box-shadow .5s var(--ease), top .5s var(--ease);
}
.nav.scrolled { top: 10px; box-shadow: 0 14px 40px -18px rgba(34,27,20,.28); }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  letter-spacing: .12em; display: flex; align-items: center; gap: 6px;
}
.brand-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }
.nav-links { display: flex; gap: 20px; }
.nav-links a, .nav-tel {
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); position: relative; transition: color .3s; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--terra); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-tel { color: var(--ink); font-weight: 600; }
.nav-tel:hover { color: var(--terra); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1.6px; background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 44px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
  padding: calc(88px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
}
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .5s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 26px; text-align: center; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  transform: translateY(24px); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .07s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .14s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .21s; }
.mm-tel { font-size: 15px; letter-spacing: .06em; color: var(--ink-2); }

/* ══════════ HERO ══════════ */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 112px 0 72px;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 7s var(--ease);
}
.hero-media img.on { opacity: 1; transform: scale(1); }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(244,239,231,.97) 0%, rgba(244,239,231,.88) 38%, rgba(244,239,231,.24) 72%, rgba(244,239,231,.08) 100%),
    linear-gradient(180deg, rgba(244,239,231,.72) 0%, rgba(244,239,231,.08) 42%, rgba(244,239,231,.58) 100%);
}
.hero-inner { position: relative; z-index: 2; width: var(--content-width); max-width: var(--content-max); margin-inline: auto; }
.hero-kicker {
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 30px;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--terra); }
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(52px, 9.2vw, 132px);
  line-height: .98; letter-spacing: -0.025em;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-title .tick { color: var(--terra); }
.hero-sub { margin-top: 30px; max-width: 560px; font-size: 16.5px; color: #493f35; }
.hero-cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.catalog-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px;
  padding: 18px 6vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  width: var(--content-width); max-width: var(--content-max); margin-inline: auto;
}
.catalog-facts a { color: var(--terra-2); font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 8px 8px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s;
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--terra-2); }
.btn-ghost { border: 1px solid var(--ink); padding-inline: 24px; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--terra); color: var(--paper); }
.btn-line { border: 1px solid rgba(244,239,231,.4); padding-inline: 24px; color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }
.btn-orb {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(244,239,231,.16);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), background .4s;
}
.btn-solid:hover .btn-orb, .btn-light:hover .btn-orb { background: rgba(244,239,231,.28); transform: translateX(3px); }
.btn-ghost .btn-orb, .btn-line .btn-orb { background: rgba(34,27,20,.07); }
.btn-ghost:hover .btn-orb { background: rgba(244,239,231,.16); }

/* ══════════ SECTION HEADS ══════════ */
.sec-head { max-width: 660px; margin-bottom: clamp(40px, 5.5vw, 66px); }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra-2); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--terra); }
.eyebrow-dark { color: #c9906b; }
.eyebrow-dark::before { background: #c9906b; }
.sec-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.02em;
}
.sec-title em { font-style: italic; font-weight: 400; color: var(--terra-2); }
.sec-title-dark { color: var(--paper); }
.sec-title-dark em { color: #d9a583; }
.sec-note { margin-top: 20px; color: var(--ink-2); font-size: 15.5px; }
.sec-note-dark { color: rgba(244,239,231,.72); }

/* ══════════ SEARCH TOOLS ══════════ */
.tools {
  display: flex; align-items: center; gap: 12px;
  max-width: 520px; padding: 15px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .35s, box-shadow .35s;
}
.tools:focus-within { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(160,82,45,.09); }
.tools-ico { color: var(--ink-2); flex: 0 0 auto; }
.tools input { flex: 1; border: 0; outline: 0; background: none; font-size: 15px; min-width: 0; }
.tools input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.tools input::placeholder { color: var(--ink-2); opacity: .75; }
.tools button { color: var(--ink-2); font-size: 14px; padding: 4px; }
.tools button:hover { color: var(--ink); }
.search-status { margin-top: 12px; font-size: 13px; color: var(--ink-2); min-height: 18px; }
.search-status b { color: var(--terra-2); font-weight: 600; }
.empty { margin-top: 26px; padding: 40px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--ink-2); }
.text-link { color: var(--terra-2); border-bottom: 1px solid var(--line); margin-left: 8px; transition: border-color .3s; }
.text-link:hover { border-color: var(--terra-2); }

/* ══════════ INDEX GRID ══════════ */
.index { width: var(--content-width); max-width: var(--content-max); margin-inline: auto; padding: clamp(90px, 12vw, 160px) 0 clamp(64px, 8vw, 104px); }
.index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.idx-card {
  position: relative; display: block; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4/4.6; background: var(--paper-2);
}
.idx-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.idx-card:hover img, .idx-card:focus-visible img { transform: scale(1.06); }
.idx-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(20,14,9,0) 42%, rgba(20,14,9,.62) 100%);
}
.idx-card.wide { grid-column: span 2; }
.idx-label {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px;
  color: var(--paper); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.idx-name { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 25px); font-weight: 400; line-height: 1.1; display: block; }
.idx-sub { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; opacity: .74; margin-top: 5px; }

/* ══════════ RAIL ══════════ */
.rail {
  position: sticky; top: 82px; z-index: 80;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rail::after {
  content: ""; position: absolute; top: 1px; right: 0; bottom: 1px; width: 72px;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--paper) 78%);
  transition: opacity .25s;
}
.rail.has-overflow.has-more::after { opacity: 1; }
.searching .rail { display: none; }
.rail-track { display: flex; gap: 4px; width: var(--content-width); max-width: var(--content-max); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail a {
  flex: 0 0 auto; margin-block: 4px; padding: 9px 14px; border-radius: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .3s, background .3s;
  white-space: nowrap;
}
.rail a:hover { color: var(--ink); background: var(--paper-2); }
.rail a.active { color: var(--terra); background: var(--paper-2); }

/* ══════════ CATEGORY SECTIONS ══════════ */
.cat { padding: clamp(72px, 7vw, 104px) 0 clamp(88px, 8vw, 120px); scroll-margin-top: 138px; }
.cat:nth-of-type(even) { background: var(--paper-2); }
.cat-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  width: var(--content-width); max-width: var(--content-max); margin: 0 auto clamp(30px, 3vw, 44px);
}
.cat-head-left { display: flex; align-items: flex-start; }
.cat-title { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.cat-sub { margin-top: 10px; color: var(--ink-2); font-size: 14px; letter-spacing: .04em; }
.cat-more {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terra-2); padding-bottom: 6px; border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.cat-more:hover { border-color: var(--terra-2); }

.row { display: flex; gap: 20px; width: var(--content-width); max-width: var(--content-max); margin-inline: auto; padding: 0 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }

/* product card */
.p-card {
  position: relative; flex: 0 0 clamp(260px, 23vw, 336px); scroll-snap-align: start;
  border-radius: 16px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line); text-align: left; padding: 0;
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -30px rgba(34,27,20,.4); }
.p-media { position: relative; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.p-card:hover .p-media img.pri { transform: scale(1.055); }
.p-media img.sec { position: absolute; inset: 0; opacity: 0; }
.p-media img.sec.on { opacity: 1; }
.p-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; min-height: 74px; padding: 15px 17px 17px; }
.p-name { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.15; }
.p-action { display: inline-flex; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-2); white-space: nowrap; }
.p-hint {
  position: absolute; right: 13px; bottom: 13px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 86%, transparent); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.p-card:hover .p-hint, .p-card:focus-visible .p-hint { opacity: 1; transform: none; }

.row-nav { display: flex; gap: 10px; width: var(--content-width); max-width: var(--content-max); margin-inline: auto; padding-top: 20px; }
.row-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--card); color: var(--ink);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.row-btn:hover { background: var(--ink); color: var(--paper); }
.row-btn:active { transform: scale(.93); }
.row-btn:disabled { opacity: .28; cursor: default; pointer-events: none; }

/* ══════════ WORKS ══════════ */
.works { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); }
.works > .sec-head, .works-row, .works-link { width: var(--content-width); max-width: var(--content-max); margin-inline: auto; }
.works-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .72fr) minmax(0, .72fr); gap: 20px; }
.works-row figure { border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.works-row img { width: 100%; height: auto; object-fit: cover; transition: transform 1.2s var(--ease); }
.works-row figure:first-child img { aspect-ratio: 4/3; }
.works-row figure:not(:first-child) img { aspect-ratio: 3/4; }
.works-row figure:hover img { transform: scale(1.05); }
.works-row figcaption { padding: 15px 17px 17px; color: var(--ink-2); font-size: 12px; letter-spacing: .04em; }
.works-link { margin-top: 34px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-2);
}
.link-arrow svg { transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ══════════ SERVICES ══════════ */
.services { background: var(--paper-2); color: var(--ink); padding: clamp(90px, 12vw, 160px) 0; }
.sv-grid { width: var(--content-width); max-width: var(--content-max); margin-inline: auto; }
.sv-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.sv-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.sv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sv-ph { border-radius: 16px; overflow: hidden; }
.sv-ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/3.8; }
.sv-ph-b { transform: translateY(34px); }

/* ══════════ CONTACTS + FORM ══════════ */
.contacts { padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); }
.ct-wrap { width: var(--content-width); max-width: var(--content-max); margin-inline: auto; }
.ct-grid { margin-top: 46px; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.15fr); gap: clamp(56px, 6vw, 96px); align-items: start; }
.ct-label { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin: 28px 0 8px; }
.ct-col .ct-label:first-child { margin-top: 0; }
.ct-big { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 29px); font-weight: 400; line-height: 1.25; transition: color .3s; word-break: break-word; }
.ct-big:hover { color: var(--terra); }
.ct-social { display: flex; flex-direction: column; gap: 6px; }
.ct-social a, .ct-link { font-size: 15px; border-bottom: 1px solid var(--line); width: fit-content; padding-bottom: 2px; transition: color .3s, border-color .3s; }
.ct-social a:hover, .ct-link:hover { color: var(--terra); border-color: var(--terra); }
.visit-note { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); max-width: 440px; }
.visit-note strong { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.visit-note p { margin-top: 6px; color: var(--ink-2); font-size: 14px; }

.inquiry { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.form-help { color: var(--ink); font-size: 13.5px; line-height: 1.55; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: 13px 16px; font-size: 15px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23a0522d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(160,82,45,.09); }
.field.invalid input, .field.invalid textarea, .consent.invalid input { border-color: var(--danger, #8f2f2f); }
.field-error { min-height: 0; color: #8f2f2f; font-size: 12px; }
.field-error:not(:empty) { min-height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); display: grid; place-content: center; }
.consent input::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--terra); transform: scale(0); transition: transform .18s var(--ease); }
.consent input:checked::before { transform: scale(1); }
.consent input:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.consent a { color: var(--terra-2); font-weight: 500; border-bottom: 1px solid var(--terra); }
.inquiry-submit { justify-content: center; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inquiry-copy { padding-left: 22px; padding-right: 22px; }
.form-status { min-height: 18px; font-size: 13.5px; }
.form-status.err { color: #a53434; }
.form-status.ok { color: #266944; }

/* ══════════ FOOTER ══════════ */
.foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  width: var(--content-width); max-width: var(--content-max); margin-inline: auto;
  padding: 26px 0 30px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); letter-spacing: .04em;
}
.foot-src a { border-bottom: 1px solid var(--line); }
.foot-src a:hover { color: var(--terra); }
.foot-privacy { width: 100%; max-width: 72ch; margin-top: 6px; line-height: 1.6; }
.foot-privacy a { border-bottom: 1px solid var(--line); }
.foot-privacy a:hover { color: var(--terra); }
.foot-links { display: flex; gap: 22px; width: 100%; }
.foot-links a { border-bottom: 1px solid var(--line); }
.foot-links a:hover { color: var(--terra); }
.legal-byline { color: var(--ink-2); font-size: 13px; margin-bottom: 4px; }

/* ══════════ CONTENT PAGES ══════════ */
.subpage-nav {
  position: sticky; top: 0; z-index: 100; height: calc(76px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--page-gutter), calc((100vw - var(--content-max)) / 2)) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subpage-nav nav { display: flex; gap: 24px; }
.subpage-nav nav a { color: var(--ink-2); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.subpage-nav nav a:hover, .subpage-nav nav a[aria-current="page"] { color: var(--terra-2); }
.content-page { width: var(--content-width); max-width: var(--content-max); margin-inline: auto; padding: clamp(70px, 9vw, 120px) 0 clamp(90px, 12vw, 150px); }
.page-intro { max-width: 920px; }
.page-kicker { margin-bottom: 20px; color: var(--terra-2); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.page-intro h1, .legal-page h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7vw, 86px); line-height: 1.02; letter-spacing: -.025em; }
.page-lead { max-width: 720px; margin-top: 28px; color: var(--ink-2); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.page-meta { margin-top: 18px; color: var(--ink-2); font-size: 12px; letter-spacing: .04em; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: clamp(50px, 8vw, 120px); margin-top: clamp(64px, 9vw, 112px); align-items: start; }
.content-article { max-width: 68ch; }
.content-article h2, .legal-page h2 { margin: 34px 0 10px; font-size: 15px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.content-article h2:first-child { margin-top: 0; }
.content-article p, .legal-page p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.content-article a:not(.btn), .legal-page a { color: var(--terra-2); border-bottom: 1px solid var(--line); }
.page-actions { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.text-cta { color: var(--terra-2); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.content-media { position: sticky; top: 110px; }
.content-media figure, .contact-visual { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.content-media img, .contact-visual img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.content-media figcaption, .contact-visual figcaption { padding: 15px 17px 18px; color: var(--ink-2); font-size: 12px; }
.contact-card { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; background: var(--card); }
.contact-card span { color: var(--terra-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-card a { color: var(--ink-2); border-bottom: 1px solid var(--line); word-break: break-word; }
.contact-page-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(50px, 8vw, 120px); margin-top: clamp(64px, 9vw, 112px); align-items: start; }
.contact-direct { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.contact-direct > div { padding-top: 16px; border-top: 1px solid var(--line); }
.contact-direct span, .social-row span { display: block; margin-bottom: 8px; color: var(--terra-2); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.contact-direct a { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; word-break: break-word; }
.contact-direct p { color: var(--ink-2); }
.contact-direct .page-actions { grid-column: 1 / -1; }
.contact-visual img { aspect-ratio: 4/4.2; }
.social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.social-row a { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink-2); }
.social-row a:hover { border-color: var(--terra); color: var(--ink); }
.contact-guide { margin-top: clamp(64px, 9vw, 110px); max-width: 1040px; }
.contact-guide > h2 { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 52px); font-weight: 300; }
.contact-guide > p { max-width: 72ch; margin-top: 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.contact-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.contact-guide-grid > div { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.contact-guide-grid h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.contact-guide-grid p { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.contact-faq { max-width: 860px; margin-top: clamp(64px, 9vw, 110px); }
.contact-faq > h2 { font-family: var(--serif); font-size: clamp(32px, 4.2vw, 52px); font-weight: 300; margin-bottom: 24px; }
.contact-faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-faq h3 { font-size: 15px; font-weight: 600; }
.contact-faq p { margin-top: 8px; max-width: 72ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.legal-page { max-width: 76ch; margin: 0 auto; padding: clamp(70px, 9vw, 120px) 6vw clamp(90px, 12vw, 150px); }
.legal-page h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 20px; }
.legal-updated { margin: 0 0 36px; color: var(--ink-2); font-size: 13px; }
.legal-page strong { color: var(--ink); font-weight: 500; }

/* ══════════ LIGHTBOX ══════════ */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,20,14,.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.lb.open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .45s var(--ease); }
.lb-body {
  position: relative;
  width: min(1320px, 100%); height: min(680px, calc(100dvh - 48px));
  background: var(--paper); border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .75fr);
  transform: translateY(26px) scale(.98); transition: transform .55s var(--ease);
  box-shadow: 0 60px 120px -40px rgba(27,22,18,.62);
}
.lb.open .lb-body { transform: none; }
.lb-media { position: relative; min-height: 0; overflow: hidden; background: #1b1612; }
.lb-fig { width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-fig img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; transition: opacity .3s; }
.lb.media-wide .lb-fig img { object-fit: cover; }
.lb-nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px; color: rgba(244,239,231,.9); pointer-events: none; }
.lb-arr { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244,239,231,.36); background: rgba(27,22,18,.58); color: var(--paper); font-size: 16px; pointer-events: auto; transition: background .3s, transform .3s var(--ease); }
.lb-arr:hover { background: rgba(244,239,231,.14); }
.lb-arr:active { transform: scale(.94); }
.lb-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 12px; border-radius: 999px; background: rgba(27,22,18,.62); font-size: 12px; letter-spacing: .16em; }
.lb-side { min-height: 0; padding: clamp(58px, 5vw, 74px) clamp(28px, 3.4vw, 46px) clamp(30px, 3.4vw, 44px); display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.lb-side::-webkit-scrollbar { display: none; }
.lb-cat { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-2); margin-bottom: 14px; }
.lb-name { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.lb-note { margin-top: 18px; color: var(--ink-2); font-size: 14.5px; }
.lb-cta { margin-top: auto; align-self: flex-start; }
.lb-source { width: fit-content; margin-top: 16px; color: var(--terra-2); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.lb-tel { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.lb-tel a { color: var(--terra-2); border-bottom: 1px solid var(--line); }
.lb-x {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(244,239,231,.9); color: var(--ink); font-size: 17px;
  box-shadow: 0 12px 30px -16px rgba(27,22,18,.7);
  transition: background .3s, transform .4s var(--ease);
}
.lb-x:hover { background: var(--paper); transform: rotate(90deg); }

/* ══════════ REVEAL ══════════ */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(5px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero .reveal { opacity: 1; transform: none; filter: none; transition: none; }
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  html { scroll-behavior: auto; }
  .reveal, .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-media img { transition: opacity .3s; }
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1100px) {
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .idx-card.wide { grid-column: span 2; }
}
@media (max-width: 1040px) {
  .nav-links, .nav-tel { display: none; }
  .burger { display: block; }
  .nav, .nav.scrolled { top: max(12px, calc(env(safe-area-inset-top) + 8px)); gap: 12px; left: 16px; right: 16px; transform: none; justify-content: space-between; }
  .hero { padding: 104px 0 70px; }
  .sv-grid { grid-template-columns: 1fr; }
  .sv-photos { order: -1; }
  .sv-ph-b { transform: none; }
  .ct-grid { grid-template-columns: 1fr; }
  .inquiry { width: min(100%, 720px); }
  .works-row { grid-template-columns: 1fr 1fr; }
  .works-row figure:first-child { grid-column: span 2; }
  .lb { padding: 12px; }
  .lb-body { width: 100%; height: calc(100dvh - 24px); grid-template-columns: 1fr; grid-template-rows: minmax(300px, 58%) minmax(0, 42%); }
  .lb-side { padding: 28px 28px calc(26px + env(safe-area-inset-bottom)); }
  .lb-cta { margin-top: 24px; }
  .lb-x { top: 16px; right: 16px; background: rgba(244,239,231,.9); }
  .content-layout, .contact-page-grid { grid-template-columns: 1fr; }
  .content-media { position: static; max-width: 620px; }
  .contact-visual { max-width: 620px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 132px; }
  .rail { top: calc(76px + env(safe-area-inset-top)); }
  .catalog-facts { grid-template-columns: 1fr; gap: 7px; padding-block: 16px; }
  .catalog-facts span:nth-child(2) { display: none; }
  .hero { min-height: 94dvh; }
  .hero-title { font-size: clamp(42px, 11.2vw, 52px); }
  .hero-kicker { max-width: 300px; letter-spacing: .14em; }
  .hero-media img { object-position: 62% center; }
  .hero-veil {
    background:
      radial-gradient(ellipse 115% 78% at 4% 74%, rgba(244,239,231,.99) 0%, rgba(244,239,231,.94) 34%, rgba(244,239,231,.56) 62%, transparent 82%),
      linear-gradient(90deg, rgba(244,239,231,.98) 0%, rgba(244,239,231,.82) 52%, rgba(244,239,231,.2) 100%),
      linear-gradient(0deg, rgba(244,239,231,.88) 0%, transparent 58%);
  }
  .index-grid { grid-template-columns: 1fr; }
  .idx-card.wide { grid-column: span 1; aspect-ratio: 4/3.6; }
  .idx-card { aspect-ratio: 4/3.4; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .p-card { flex-basis: min(82vw, 330px); }
  .p-action { display: inline-flex; }
  .works-row { grid-template-columns: 1fr; }
  .works-row figure:first-child { grid-column: span 1; }
  .hero-sub br { display: none; }
  .tools { max-width: none; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .btn { justify-content: center; width: 100%; }
  .skip-link, .brand, .catalog-facts a, .rail a, .cat-more, .link-arrow,
  .ct-big, .ct-social a, .ct-link, .foot-links a, .foot-src a, .foot-privacy a,
  .lb-source, .lb-tel a, .text-link, .subpage-nav a, .contact-direct a,
  .contact-card a, .social-row a, .page-actions a, .consent a {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .consent { min-height: 44px; align-items: center; }
  .tools input, .field input, .field select { min-height: 44px; }
  .inquiry { width: 100%; padding: 22px 18px; border-radius: 18px; }
  .lb { padding: 0; align-items: flex-end; }
  .lb-body { height: 100dvh; border-radius: 0; grid-template-rows: minmax(290px, 52dvh) minmax(0, 1fr); transform: translateY(32px); }
  .lb-side { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
  .lb-cat { margin-bottom: 8px; }
  .lb-note { margin-top: 10px; font-size: 13.5px; }
  .lb-cta { width: 100%; margin-top: 18px; justify-content: center; }
  .lb-source { margin-top: 12px; }
  .lb-tel { margin-top: 10px; padding-bottom: 2px; }
  .lb-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .lb-nav { padding: 14px; }
  .lb-arr { width: 44px; height: 44px; }
  .lb-count { bottom: 14px; }
  .subpage-nav { height: 68px; }
  .subpage-nav nav { gap: 14px; }
  .subpage-nav nav a { display: none; }
  .subpage-nav nav a:first-child { display: inline-flex; }
  .content-page { padding-top: 54px; }
  .page-intro h1, .legal-page h1 { font-size: clamp(40px, 13vw, 58px); }
  .content-layout, .contact-page-grid { margin-top: 52px; }
  .contact-direct { grid-template-columns: 1fr; }
  .contact-direct .page-actions { grid-column: auto; }
  .social-row { grid-template-columns: 1fr; }
  .contact-guide-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .p-hint { opacity: 1; transform: none; }
}

.noscript-catalog { margin: 0 6vw 80px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.noscript-catalog h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.noscript-catalog p { margin-top: 10px; color: var(--ink-2); }
.noscript-catalog a { color: var(--terra-2); border-bottom: 1px solid var(--line); }
