/* ILLESHA Digital Card */
.idc, .idc * { box-sizing: border-box; }
.idc {
  --ink: #2e2620;
  --muted: #7a6c5e;
  --paper: #f1e9dd;
  --paper-2: #e9dfd0;
  --line: #c9bcaa;
  --bronze: #8a6f55;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--serif);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  padding: clamp(0px, 4vw, 40px) 0;
  background:
    radial-gradient(1100px 600px at 50% -10%, #f7f1e8 0%, transparent 60%),
    #e4dacb;
}
body.idc-body { margin: 0; background: #e4dacb; }
.idc-body .idc { min-height: 100vh; padding-top: max(env(safe-area-inset-top), clamp(0px, 4vw, 40px)); }

.idc-card {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: clamp(44px, 9vw, 72px) clamp(26px, 8vw, 60px) 56px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--paper);
  box-shadow: 0 30px 80px -30px rgba(54, 40, 29, .35), 0 0 0 1px rgba(138, 111, 85, .12);
  animation: idc-rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
@media (min-width: 560px) {
  .idc-card::before {            /* fine inner frame */
    content: ""; position: absolute; inset: 14px; pointer-events: none;
    border: 1px solid rgba(138, 111, 85, .28);
  }
}

.idc-head { text-align: center; }
.idc-logo { display: block; width: min(100%, 330px); height: auto; margin: 0 auto; }
.idc-stem { display: block; width: 1px; height: 44px; background: var(--bronze); opacity: .7; margin: 38px auto 30px; }
.idc-tagline {
  margin: 0; font-size: clamp(20px, 5vw, 24px); font-weight: 400; letter-spacing: .02em; color: var(--ink);
}
.idc-tagline em { color: var(--bronze); }

.idc-services {
  list-style: none; margin: 38px 0 0; padding: 0; text-align: center;
  font: 400 clamp(10px, 2.5vw, 11.5px)/2.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

.idc-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px 0 8px; }
.idc-orn i { flex: 1; height: 1px; background: var(--line); }
.idc-orn b { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--bronze); }

.idc-person { text-align: center; padding: 34px 0 36px; }
.idc-person + .idc-person { border-top: 1px solid var(--line); }
.idc-name { margin: 0 0 10px; font: 400 clamp(28px, 7vw, 34px)/1.15 var(--serif); letter-spacing: .01em; }
.idc-role { margin: 0 0 18px; font: 400 10.5px/2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.idc-phone {
  display: inline-block; margin-bottom: 24px; color: var(--ink); text-decoration: none;
  font: 400 17px var(--serif); letter-spacing: .1em; border-bottom: 1px solid transparent; transition: border-color .25s;
}
.idc-phone:hover { border-color: var(--bronze); }

.idc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.idc-links { display: grid; gap: 10px; margin-top: 8px; }

.idc .idc-btn {
  appearance: none; -webkit-appearance: none; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 10px; border-radius: 0;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 500 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.idc .idc-btn svg { width: 17px; height: 17px; flex: none; }
.idc .idc-btn:hover { background: var(--ink); color: #f8f2e9; transform: translateY(-1px); }
.idc .idc-btn--solid { background: var(--ink); color: #f8f2e9; }
.idc .idc-btn--solid:hover { background: var(--bronze); border-color: var(--bronze); }
.idc .idc-btn--wide { border-color: var(--line); min-height: 52px; }
.idc .idc-btn--wide:hover { border-color: var(--ink); }
.idc .idc-btn:focus-visible, .idc-sheet button:focus-visible, .idc-sheet a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.idc-foot { text-align: center; }
.idc-foot .idc-stem { margin: 48px auto 22px; height: 40px; }
.idc-foot p { margin: 0; font: 400 10.5px var(--sans); letter-spacing: .3em; color: var(--ink); }
.idc-foot em { font: italic 400 15px var(--serif); letter-spacing: .06em; text-transform: none; color: var(--bronze); }

/* Share sheet */
.idc-sheet { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-end; justify-content: center; }
.idc-sheet[hidden] { display: none; }
.idc-sheet__bg { position: absolute; inset: 0; background: rgba(36, 28, 21, .5); backdrop-filter: blur(3px); animation: idc-fade .25s both; }
.idc-sheet__panel {
  position: relative; width: min(100%, 520px); background: var(--paper); padding: 30px 26px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bronze); animation: idc-up .35s cubic-bezier(.2, .7, .2, 1) both;
}
@media (min-width: 560px) { .idc-sheet { align-items: center; } .idc-sheet__panel { border: 1px solid var(--bronze); } }
.idc-sheet h3 { margin: 0 0 20px; text-align: center; font: 400 26px var(--serif); }
.idc-sheet__x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.idc-sheet__x svg { width: 20px; height: 20px; }
.idc-sheet__url { display: flex; border: 1px solid var(--line); background: #f8f3ea; }
.idc-sheet__url input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; height: 48px; font: 14px var(--sans); color: var(--ink); }
.idc-sheet__url button {
  display: flex; align-items: center; gap: 7px; border: 0; background: var(--ink); color: #f8f2e9; cursor: pointer; padding: 0 16px;
  font: 500 10.5px var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.idc-sheet__url button svg { width: 16px; height: 16px; }
.idc-sheet__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 20px; }
.idc-sheet__grid a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 2px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); font: 400 9.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s;
}
.idc-sheet__grid a:hover { border-color: var(--ink); background: #f8f3ea; }
.idc-sheet__grid svg { width: 22px; height: 22px; }
.idc-sheet__grid b { width: 22px; height: 22px; display: grid; place-items: center; font: 600 17px/1 Georgia, serif; }
@media (max-width: 400px) { .idc-sheet__grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 360px) { .idc-actions { grid-template-columns: 1fr; } .idc-card { padding-inline: 20px; } }

/* gentle staggered reveal */
.idc-person, .idc-links, .idc-services { animation: idc-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.idc-services { animation-delay: .12s; }
.idc-person:nth-of-type(1) { animation-delay: .22s; }
.idc-person:nth-of-type(2) { animation-delay: .32s; }
.idc-links { animation-delay: .42s; }
@keyframes idc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes idc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes idc-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .idc *, .idc { animation: none !important; transition: none !important; } }

/* ---- Standard website width (desktop / tablet landscape) ---- */
@media (min-width: 768px) {
  .idc { padding: 40px 24px; }
  .idc-card { width: 100%; max-width: 1200px; padding: 84px 72px 64px; }
  .idc-card::before { inset: 18px; }
  .idc-logo { width: min(100%, 440px); }
  .idc-stem { height: 56px; margin: 44px auto 34px; }
  .idc-tagline { font-size: 32px; }
  .idc-services { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 44px; margin-top: 44px; font-size: 12px; }
  .idc-orn { margin: 52px auto 12px; max-width: 760px; }
  .idc-people { max-width: 560px; margin: 0 auto; }
  .idc-person { padding: 44px 0 48px; }
  .idc-name { font-size: 38px; }
  .idc-links { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 12px auto 0; gap: 14px; }
  .idc-foot .idc-stem { margin-top: 56px; }
}
@media (min-width: 1100px) { .idc { padding: 56px 40px; } }
@media (min-width: 1000px) {
  .idc-people { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; align-items: start; }
  .idc-person { padding: 44px 40px 48px; }
  .idc-person + .idc-person { border-top: 0; border-left: 1px solid var(--line); }
}
