/* Katara storefront: dark, image-led, centred rail on the left and a wall of tiles.
   Fonts: Ubuntu + Raleway. Accent: warm orange. */

:root {
  --sans: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  --display: "Raleway", "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  --bg: #0a0a0a;
  --card: #131313;
  --line: #262626;
  --text: #f2f2f2;
  --mute: #8d8d8d;
  --acc: #f0a35c;
  --rail: clamp(230px, 21vw, 340px);
  --gap: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- rail ---------- */
.rail { position: fixed; top: 0; left: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 24px; text-align: center; z-index: 5; }
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: #3a3327; color: var(--acc); transition: background 0.18s ease, color 0.18s ease; }
.social a:hover { background: var(--acc); color: #141414; }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.me { display: block; text-decoration: none; }
.me .photo { display: block; position: relative; width: clamp(120px, 11vw, 170px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; border: 2px solid var(--acc); }
.me .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 22%; }
.me b { display: block; margin-top: 16px; font-family: var(--display); font-weight: 900; font-size: clamp(1.3rem, 1.7vw, 1.75rem); line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase; }
.me small { display: block; margin-top: 5px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--mute); }
.rail nav { display: grid; gap: 4px; }
.rail nav a { position: relative; padding: 5px 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.6vw, 1.6rem); text-transform: uppercase; text-decoration: none; color: var(--acc); transition: color 0.16s ease; }
.rail nav a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--acc); transform: translateX(-50%); transition: width 0.2s ease; }
.rail nav a:hover { color: #fff; }
.rail nav a:hover::after, .rail nav a[aria-current="page"]::after { width: 100%; }
.rail nav a[aria-current="page"] { color: #fff; }
.where { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); }
.where b { color: var(--acc); font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 2px solid var(--acc); background: transparent; color: var(--acc); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; cursor: pointer; transition: background 0.18s ease, color 0.18s ease; }
.btn:hover { background: var(--acc); color: #141414; }
.btn.solid { background: var(--acc); color: #141414; }
.btn.solid:hover { background: #fff; border-color: #fff; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail .cv { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--mute); text-decoration: none; text-transform: uppercase; }
.rail .cv:hover { color: var(--acc); }

/* ---------- main ---------- */
.main { margin-left: var(--rail); padding: 68px clamp(16px, 2.4vw, 40px) 40px 0; max-width: 1560px; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 340px; gap: var(--gap); }
.tile { position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; border-radius: 7px; background: var(--card); box-shadow: 0 10px 34px rgba(0,0,0,0.55); text-decoration: none; color: #fff; isolation: isolate; }
.tile.w2 { grid-column: span 2; }
.tile.h2 { grid-row: span 2; }
.tile .bg { position: absolute; inset: 0; z-index: -2; }
.tile .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.8s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 6, 8, 0.7); transition: background 0.3s ease; }
.tile .txt { padding: 24px; }
.tile h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.02; letter-spacing: -0.02em; }
.tile.w2 h3 { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.tile .sub { display: block; margin-top: 8px; font-size: 1rem; color: var(--acc); }
.tile .more { display: inline-block; margin-top: 14px; padding: 8px 18px; border: 1.5px solid rgba(255,255,255,0.75); border-radius: 30px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  a.tile:hover::before { background: rgba(6, 6, 8, 0.28); }
  a.tile:hover .bg img { transform: scale(1.06); }
  a.tile:hover .more { opacity: 1; transform: none; }
}
@media (hover: none) { .tile .more { opacity: 1; transform: none; } }
.tile.gold { background: var(--acc); color: #141414; }
.tile.gold::before { display: none; }
.tile.gold .sub { color: #5a3a17; }
.tile.gold .more { border-color: #141414; opacity: 1; transform: none; }
a.tile.gold:hover .more { background: #141414; color: var(--acc); }
.tile.plain { background: var(--card); }
.tile.plain::before { display: none; }

/* ---------- inner pages ---------- */
.page-h { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.95; letter-spacing: -0.045em; text-transform: uppercase; }
.page-h em { font-style: normal; font-weight: 300; font-family: var(--sans); letter-spacing: -0.02em; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); }
.card { padding: clamp(22px, 2.6vw, 38px); border-radius: 7px; background: var(--card); box-shadow: 0 10px 34px rgba(0,0,0,0.4); }
.card h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }
.card .lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: #d8d8d8; }
.stack > * + * { margin-top: var(--gap); }
.nums { display: flex; gap: clamp(28px, 4vw, 60px); margin-top: 28px; }
.nums b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -0.04em; color: var(--acc); }
.nums span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); }
.list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); color: #e6e6e6; }
.list li:first-child { border-top: 0; padding-top: 0; }
.list li b { color: var(--acc); font-family: var(--display); font-weight: 800; }
.mail { display: inline-block; margin-top: 8px; font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 3.4rem); letter-spacing: -0.03em; text-decoration: none; word-break: break-all; border-bottom: 3px solid var(--acc); }
.mail:hover { background: var(--acc); color: #141414; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* project page */
.hero-shot { position: relative; aspect-ratio: 16 / 8.2; border-radius: 7px; overflow: hidden; background: var(--card); box-shadow: 0 10px 34px rgba(0,0,0,0.55); isolation: isolate; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,8,0.92) 0%, rgba(6,6,8,0.3) 55%, rgba(6,6,8,0.3) 100%); }
.hero-shot .cap { position: absolute; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-shot .kick { display: block; font-size: 1.1rem; color: var(--acc); }
.hero-shot h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -0.03em; }
.blurb { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mute); }
.facts dd { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { padding: 6px 14px; border: 1px solid #333; border-radius: 30px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #ddd; }
.shots { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); margin-top: var(--gap); align-items: start; }
.shots figure { margin: 0; border-radius: 7px; overflow: hidden; background: var(--card); box-shadow: 0 10px 34px rgba(0,0,0,0.4); }
.shots figcaption { padding: 10px 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #999; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: var(--gap); }
.foot { margin-left: var(--rail); padding: 26px 0 34px; border-top: 1px solid #1f1f1f; font-size: 0.8rem; color: #777; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-right: clamp(16px, 2.4vw, 40px); }

@media (max-width: 1200px) {
  .wall { grid-template-columns: repeat(2, 1fr); }
  .tile.w2 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .rail { position: static; width: auto; flex-direction: column; padding: 22px 16px 6px; gap: 16px; }
  .me .photo { width: 104px; }
  .rail nav { display: flex; gap: 18px; }
  .rail nav a { font-size: 1.05rem; }
  .main { margin-left: 0; padding: 16px; }
  .foot { margin-left: 0; padding: 22px 16px 30px; }
  .wall { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile.w2, .tile.h2 { grid-column: auto; grid-row: auto; }
  .split, .blurb, .shots { grid-template-columns: 1fr; }
  .hero-shot { aspect-ratio: 4 / 5; }
  .list li { grid-template-columns: 96px 1fr; }
}
.me .photo img { transform: scale(1.55); transform-origin: 46% 30%; }

/* CV button in the rail, experience list, page fade */
.rail .btn.cv { padding: 9px 18px; font-size: 0.82rem; border-color: #4a4032; color: #d9c7a8; }
.rail .btn.cv:hover { background: var(--acc); border-color: var(--acc); color: #141414; }
.list.jobs li { grid-template-columns: 1fr; gap: 4px; }
.list.jobs b small { display: block; margin-top: 2px; font-family: var(--sans); font-weight: 400; font-size: 0.82rem; color: var(--mute); }
.list.jobs span { color: #cfcfcf; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.main { animation: rise 0.45s ease both; }
.rail nav a[href^="http"]::before { content: ""; }

/* templates hub */
.list.inc li { grid-template-columns: 34px 1fr; gap: 8px; }
.list.inc li b { font-size: 0.85rem; padding-top: 3px; }
.tile.soon { cursor: default; background: repeating-linear-gradient(135deg, #131313 0 16px, #181818 16px 32px); }
.tile .shots-note { display: none; }
.shots .stack figure + figure { margin-top: var(--gap); }

.tile.w4 { grid-column: span 4; }
@media (max-width: 1200px) { .tile.w4 { grid-column: span 2; } }
@media (max-width: 900px) { .tile.w4 { grid-column: auto; } }
.me .photo.logo { display: grid; place-items: center; background: #141414; }
.me .photo.logo svg { width: 58%; height: 58%; fill: none; stroke: var(--acc); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.me .photo img { image-rendering: auto; transform: none; }

/* ---------- portfolio pages: intro, services, steps, FAQ ---------- */
.intro { margin-bottom: 28px; }
.intro .lede { max-width: 56ch; margin-top: 14px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-top: 28px; }
.svc h2 { margin-bottom: 12px; }
.ticks li { position: relative; padding: 6px 0 6px 22px; color: #e6e6e6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.svc .ticks { margin-top: 16px; }
.gets li { grid-template-columns: 1fr; gap: 4px; }
.gets li b { font-size: 1.05rem; }
.gets li span { color: #cfcfcf; }
.steps { display: grid; gap: var(--gap); margin-top: 28px; counter-reset: none; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.step .num { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--acc); letter-spacing: -0.03em; }
.step h2 { margin-bottom: 8px; }
.faqs { display: grid; gap: 12px; margin-top: 28px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 14px; color: #d8d8d8; max-width: 70ch; }
.rail nav a { font-size: clamp(1.05rem, 1.35vw, 1.35rem); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } .step { grid-template-columns: 48px 1fr; } .rail nav { flex-wrap: wrap; justify-content: center; } }
.intro .page-h { font-size: clamp(2.2rem, 4.4vw, 4rem); }
